diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-04 08:08:27 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-07 20:37:05 +0100 |
| commit | 7119f40c9881666b6f9b5cf7df09ee1d21cc8344 (patch) | |
| tree | fa50869f5614295f462d9bf77fec59365c621609 /django/core/management/commands/sqlmigrate.py | |
| parent | 9c19aff7c7561e3a82978a272ecdaad40dda5c00 (diff) | |
Refs #33476 -- Refactored code to strictly match 88 characters line length.
Diffstat (limited to 'django/core/management/commands/sqlmigrate.py')
| -rw-r--r-- | django/core/management/commands/sqlmigrate.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/django/core/management/commands/sqlmigrate.py b/django/core/management/commands/sqlmigrate.py index 880eb11d9b..2f6993682f 100644 --- a/django/core/management/commands/sqlmigrate.py +++ b/django/core/management/commands/sqlmigrate.py @@ -19,7 +19,10 @@ class Command(BaseCommand): parser.add_argument( "--database", default=DEFAULT_DB_ALIAS, - help='Nominates a database to create SQL for. Defaults to the "default" database.', + help=( + 'Nominates a database to create SQL for. Defaults to the "default" ' + "database." + ), ) parser.add_argument( "--backwards", @@ -55,13 +58,13 @@ class Command(BaseCommand): migration = loader.get_migration_by_prefix(app_label, migration_name) except AmbiguityError: raise CommandError( - "More than one migration matches '%s' in app '%s'. Please be more specific." - % (migration_name, app_label) + "More than one migration matches '%s' in app '%s'. Please be more " + "specific." % (migration_name, app_label) ) except KeyError: raise CommandError( - "Cannot find a migration matching '%s' from app '%s'. Is it in INSTALLED_APPS?" - % (migration_name, app_label) + "Cannot find a migration matching '%s' from app '%s'. Is it in " + "INSTALLED_APPS?" % (migration_name, app_label) ) target = (app_label, migration.name) |
