diff options
| author | Arkadiusz Adamski <ar4s@users.noreply.github.com> | 2017-01-21 13:40:33 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-01-21 07:42:10 -0500 |
| commit | a15d81a183e2d85969ed46adb975661515330b16 (patch) | |
| tree | 627cdeafe9aff115214cf2514a81e1876656bef5 /docs | |
| parent | 6bb01b0b3cc6e5b2cf8d75ed2fd00a442d5caf52 (diff) | |
[1.11.x] Removed unused imports in example migrations.
Backport of a76d12ceb437a68efb6a19a588fb29a7a0e5a5e2 from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/howto/writing-migrations.txt | 2 | ||||
| -rw-r--r-- | docs/ref/migration-operations.txt | 2 | ||||
| -rw-r--r-- | 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 |
