diff options
| author | Markus Holtermann <info@markusholtermann.eu> | 2015-09-12 12:04:27 +1000 |
|---|---|---|
| committer | Markus Holtermann <info@markusholtermann.eu> | 2015-09-12 13:23:38 +1000 |
| commit | 3cc5cc79584b66dafac54264d072ac1206426471 (patch) | |
| tree | 27404a3d06997898ea6d9e7db90b7237159ce367 | |
| parent | 95c00c40ae62c4e723a3498722ab3a0921aa46e5 (diff) | |
[1.8.x] Fixed #25384 -- Ordered imports in newly created migration files
| -rw-r--r-- | django/db/migrations/writer.py | 2 | ||||
| -rw-r--r-- | docs/releases/1.8.5.txt | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/django/db/migrations/writer.py b/django/db/migrations/writer.py index b4417aadba..1bed59b3ef 100644 --- a/django/db/migrations/writer.py +++ b/django/db/migrations/writer.py @@ -470,7 +470,7 @@ MIGRATION_TEMPLATE = """\ # -*- coding: utf-8 -*- from __future__ import unicode_literals -from django.db import models, migrations +from django.db import migrations, models %(imports)s class Migration(migrations.Migration): diff --git a/docs/releases/1.8.5.txt b/docs/releases/1.8.5.txt index 3f999acfba..c2557bd1c2 100644 --- a/docs/releases/1.8.5.txt +++ b/docs/releases/1.8.5.txt @@ -26,3 +26,6 @@ Bugfixes * Fixed autocompletion for options of non-``argparse`` management commands (:ticket:`25372`). + +* Alphabetized ordering of imports in ``from django.db import migrations, + models`` statement in newly created migrations (:ticket:`25384`). |
