Skip to content

Conversation

@jcugat
Copy link
Owner

@jcugat jcugat commented Feb 13, 2022

Used the current stable version of Django (4.0) as the reference for all the changes.

It includes, among other things:

  • EmailUserCreationForm does not strip whitespaces in the password fields, to match Django's behavior.
  • EmailUserCreationForm supports custom password validators configured by AUTH_PASSWORD_VALIDATORS.
  • EmailUser.objects.create_superuser() allows empty passwords. It will also check that both is_staff and is_superuser parameters are True (if passed). Otherwise, it would create an invalid superuser.

@jcugat jcugat merged commit 53284ef into main Feb 13, 2022
@jcugat jcugat deleted the django_changes branch February 13, 2022 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant