python: Sort migrations/management command imports with isort.

This is a preparatory commit for using isort for sorting all of our
imports, merging changes to files where we can easily review the
changes as something we're happy with.

These are also files with relatively little active development, which
means we don't expect much merge conflict risk from these changes.
This commit is contained in:
Tim Abbott
2020-01-14 12:59:46 -08:00
parent 9f8eccdbbf
commit 8e7ce7cc79
261 changed files with 356 additions and 223 deletions

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from django.db import migrations
from django.conf import settings
from django.db import migrations
class Migration(migrations.Migration):

View File

@@ -1,9 +1,11 @@
# -*- coding: utf-8 -*-
from django.db import migrations, connection
from django.db import connection, migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps
from zerver.lib.migrate import do_batch_update
def rebuild_pgroonga_index(apps: StateApps, schema_editor: DatabaseSchemaEditor) -> None:
with connection.cursor() as cursor:
do_batch_update(cursor, 'zerver_message', ['search_pgroonga'],

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from django.db import migrations
from django.conf import settings
from django.db import migrations
class Migration(migrations.Migration):