mirror of
https://github.com/django/django.git
synced 2024-12-23 09:36:06 +00:00
[1.8.x] Fixed #25384 -- Ordered imports in newly created migration files
This commit is contained in:
parent
95c00c40ae
commit
3cc5cc7958
@ -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):
|
||||
|
@ -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`).
|
||||
|
Loading…
Reference in New Issue
Block a user