Skip to content

Commit

Permalink
django-2.0: Change parameter name to app_label.
Browse files Browse the repository at this point in the history
showmigrations command expects a parameter with the name app_label.
  • Loading branch information
rht authored and timabbott committed Jan 31, 2018
1 parent 0d796e6 commit 0c4066b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zerver/lib/test_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ def get_migration_status(**options: Any) -> str:
if module_has_submodule(app_config.module, "management"):
import_module('.management', app_config.name)

app_labels = [options['app_label']] if options.get('app_label') else None
app_label = options['app_label'] if options.get('app_label') else None
db = options.get('database', DEFAULT_DB_ALIAS)
out = StringIO()
call_command(
'showmigrations',
'--list',
app_labels=app_labels,
app_label=app_label,
database=db,
no_color=options.get('no_color', False),
settings=options.get('settings', os.environ['DJANGO_SETTINGS_MODULE']),
Expand Down

0 comments on commit 0c4066b

Please sign in to comment.