Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import latest code changes from Django 4.0 #65

Merged
merged 1 commit into from
Feb 13, 2022
Merged

Import latest code changes from Django 4.0 #65

merged 1 commit into from
Feb 13, 2022

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