mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Cleaned up example migration files in docs
This commit is contained in:
parent
e34226fc37
commit
73df1040a2
2 changed files with 9 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue