﻿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
33178	createsuperuser does not validate REQUIRED_FIELDS values in interactive mode when passed by command-line.	Christophe Henry	Christophe Henry	"`createsuperuser` command will alway perform a field validation using `field.clean` when creating a new user. In non-interactive mode, it is done [https://github.com/django/django/blob/main/django/contrib/auth/management/commands/createsuperuser.py#L187 here]. In interactive mode, it is performed in [https://github.com/django/django/blob/main/django/contrib/auth/management/commands/createsuperuser.py#L217 `get_input_data`] when the value is requested from input. But if the valued was passed using `--` command, the field is never validated.

The consequence is it ends up passing a non-validated string to [https://github.com/django/django/blob/28f66b2783e52d5be51887c31cd2be907b820e11/django/contrib/auth/models.py#L154 `UserManager.create_superuser`] instead of a integer  corresponding to an actual PK in DB."	Bug	closed	contrib.auth	3.2	Normal	fixed			Accepted	1	0	0	0	0	0
