diff --git a/docs/howto/writing-migrations.txt b/docs/howto/writing-migrations.txt index f850e927eb..310d34474c 100644 --- a/docs/howto/writing-migrations.txt +++ b/docs/howto/writing-migrations.txt @@ -158,7 +158,7 @@ the respective field according to your needs. # Generated by Django A.B on YYYY-MM-DD HH:MM from __future__ import unicode_literals - from django.db import migrations, models + from django.db import migrations import uuid def gen_uuid(apps, schema_editor): diff --git a/docs/ref/migration-operations.txt b/docs/ref/migration-operations.txt index bb5d451379..82d4810992 100644 --- a/docs/ref/migration-operations.txt +++ b/docs/ref/migration-operations.txt @@ -317,7 +317,7 @@ model:: # -*- coding: utf-8 -*- from __future__ import unicode_literals - from django.db import migrations, models + from django.db import migrations def forwards_func(apps, schema_editor): # We get the model from the versioned app registry; diff --git a/docs/topics/migrations.txt b/docs/topics/migrations.txt index 2be05903ae..889c05b284 100644 --- a/docs/topics/migrations.txt +++ b/docs/topics/migrations.txt @@ -463,7 +463,7 @@ Then, open up the file; it should look something like this:: # Generated by Django A.B on YYYY-MM-DD HH:MM from __future__ import unicode_literals - from django.db import migrations, models + from django.db import migrations class Migration(migrations.Migration): initial = True @@ -493,7 +493,7 @@ need to do is use the historical model and iterate over the rows:: # -*- coding: utf-8 -*- from __future__ import unicode_literals - 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