From a15d81a183e2d85969ed46adb975661515330b16 Mon Sep 17 00:00:00 2001 From: Arkadiusz Adamski Date: Sat, 21 Jan 2017 13:40:33 +0100 Subject: [PATCH] [1.11.x] Removed unused imports in example migrations. Backport of a76d12ceb437a68efb6a19a588fb29a7a0e5a5e2 from master --- docs/howto/writing-migrations.txt | 2 +- docs/ref/migration-operations.txt | 2 +- docs/topics/migrations.txt | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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