Skip to content

Missing Signal for UserProfile Creation #2

Open
@Esmat434

Description

@Esmat434

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions