|
@@ -455,7 +455,7 @@ the file in the right place, suggest a name, and add dependencies for you)::
|
|
|
Then, open up the file; it should look something like this::
|
|
|
|
|
|
# Generated by Django A.B on YYYY-MM-DD HH:MM
|
|
|
- from django.db import migrations, models
|
|
|
+ from django.db import migrations
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
initial = True
|
|
@@ -482,7 +482,7 @@ combined values of ``first_name`` and ``last_name`` (we've come to our senses
|
|
|
and realized that not everyone has first and last names). All we
|
|
|
need to do is use the historical model and iterate over the rows::
|
|
|
|
|
|
- from django.db import migrations, models
|
|
|
+ from django.db import migrations
|
|
|
|
|
|
def combine_names(apps, schema_editor):
|
|
|
# We can't import the Person model directly as it may be a newer
|