﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
28044	Different logic in createsuperuser command between interactive and non-interactive mode	Sławek Ehlert	DoHyun Kim	"Currently the {{{createsuperuser}}} management command logic differs when running in non-interactive mode ({{{--no-input}}} option) and in interactive mode (the default).

Here's a summary of what it does currently.

In **interactive** mode:
- checks if stdin is a TTY (obviously),
- checks if provided user already exists (before creating it),
- provides ""fake_user_data"" for the case where User model has FKs to other models,
- validates provided password.

In **non-interactive** mode:
- cleans every required field and a {{{USERNAME_FIELD}}} (fix for interactive mode is already in #28016),
- doesn't allow to provide password (there's #27801 for this case - I already did some work on that ticket).

I think it would be good to combine the logic for both modes before tackling #27801. That would also make #28016 obsolete.
"	Cleanup/optimization	closed	contrib.auth	dev	Normal	fixed	createsuperuser management command		Accepted	1	0	0	1	0	0
