1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Cleaned up example migration files in docs

This commit is contained in:
Tyson Clugg
2015-08-11 18:07:04 +10:00
committed by Markus Holtermann
parent e34226fc37
commit 73df1040a2
2 changed files with 9 additions and 3 deletions

View File

@@ -280,7 +280,9 @@ example of using ``RunPython`` to create some initial objects on a ``Country``
model::
# -*- coding: utf-8 -*-
from django.db import models, migrations
from __future__ import unicode_literals
from django.db import migrations, models
def forwards_func(apps, schema_editor):
# We get the model from the versioned app registry;