summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorArkadiusz Adamski <ar4s@users.noreply.github.com>2017-01-21 13:40:33 +0100
committerTim Graham <timograham@gmail.com>2017-01-21 07:40:33 -0500
commita76d12ceb437a68efb6a19a588fb29a7a0e5a5e2 (patch)
treeadf957c3ebb9c08078b0d6d8792286b4f11d5dc8 /docs
parent503e944ac792498e7b38c799d8e4b06f74e9d65a (diff)
Removed unused imports in example migrations.
Diffstat (limited to 'docs')
-rw-r--r--docs/howto/writing-migrations.txt2
-rw-r--r--docs/ref/migration-operations.txt2
-rw-r--r--docs/topics/migrations.txt4
3 files changed, 4 insertions, 4 deletions
diff --git a/docs/howto/writing-migrations.txt b/docs/howto/writing-migrations.txt
index 02579eeeb4..bd1968ccb8 100644
--- a/docs/howto/writing-migrations.txt
+++ b/docs/howto/writing-migrations.txt
@@ -152,7 +152,7 @@ the respective field according to your needs.
:filename: 0005_populate_uuid_values.py
# Generated by Django A.B on YYYY-MM-DD HH:MM
- 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 e6e6f73a99..a977317a80 100644
--- a/docs/ref/migration-operations.txt
+++ b/docs/ref/migration-operations.txt
@@ -310,7 +310,7 @@ class in the migration file, and just pass it to ``RunPython``. Here's an
example of using ``RunPython`` to create some initial objects on a ``Country``
model::
- 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 5b872cb584..0acf1a2110 100644
--- a/docs/topics/migrations.txt
+++ b/docs/topics/migrations.txt
@@ -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