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

[TASK-1113] Fix createsuperuser not creating a valid email address #5144

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bufke
Copy link
Contributor

@bufke bufke commented Oct 2, 2024

Description

When using the Django management command ./manage.py createsuperuser a verified email address record is now created. This allows createsuperuser to create an immediately usable superuser account.

Notes

I suspect the UserProfile code could be simplified but wanted to keep my scope low. Let me know if you'd like me to refactor it. I also added a code comment explaining what it does, as it's a bit weird to "fix" any user account and not just the one made.

Devops impact - in emergencies and local dev, this command is very handy. This change speeds up emergency response.

Ran ruff.

Needs unit test

@bufke bufke requested a review from noliveleger October 2, 2024 17:51
Copy link

Fix createsuperuser

@bufke bufke marked this pull request as ready for review October 2, 2024 19:49
@bufke bufke assigned bufke and noliveleger and unassigned bufke Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants