Commit 3cc5cc79 authored by Markus Holtermann's avatar Markus Holtermann
Browse files

[1.8.x] Fixed #25384 -- Ordered imports in newly created migration files

parent 95c00c40
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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):
+3 −0
Original line number Diff line number Diff line
@@ -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`).