Open
Description
Description:
Currently, the UserProfile
is only created when a user registers via the registration form. However, when a user is created using createsuperuser
(via CLI), the UserProfile
is not automatically created.
Suggested Solution:
To ensure consistency, I recommend using Django signals (e.g., post_save
on the User model) to automatically create a UserProfile
instance whenever a new user is created.
Why this matters:
This helps prevent unexpected bugs in parts of the app that rely on the presence of a user profile. It also ensures better consistency across different user creation flows.
Let me know if you'd like me to create a PR for this 😊
Metadata
Metadata
Assignees
Labels
No labels