Skip to content

Commit

Permalink
Fix asking for creating user even when --no-input flag is used
Browse files Browse the repository at this point in the history
  • Loading branch information
yakky committed Jul 23, 2014
1 parent cdb32c7 commit bc3db0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djangocms_installer/django/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def setup_database(config_data):
subprocess.check_call([sys.executable, "-W", "ignore",
"manage.py", "syncdb", "--noinput"])
print("south not installed, migrations skipped")
if not config_data.no_user:
if not config_data.no_user and not config_data.noinput:
print("\n\nCreating admin user")
subprocess.check_call([sys.executable, "-W", "ignore",
"manage.py", "createsuperuser"])
Expand Down

0 comments on commit bc3db0d

Please sign in to comment.