Skip to content

Issue 11 create custom user model #34

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

Merged
merged 12 commits into from
Jun 30, 2025

Conversation

melbauerr
Copy link
Contributor

@melbauerr melbauerr commented Jun 30, 2025

Change Summary

Implemented a Django custom user model to support Transplant Games Admin and Participants.

  1. Created a User model (event_registration.User) with the following fields:
  • email (unique, required for authentication)
  • password (hashed)
  • role (Admin or Participant)
  • last_login
  • created_at
  • updated_at
  • is_active,is_staff, is_superuser (standard Django flags)
  1. Updated settings.py to set AUTH_USER_MODEL

  2. Added UserAdmin to admin.py so admin users can create and manage accounts

Change Form

Fill this up (NA if not available). If a certain criteria is not met, can you please give a reason.

  • The pull request title has an issue number
  • The change works by "Smoke testing" or quick testing
  • The change has tests
  • The change has documentation

Other Information

[Is there anything in particular in the review that I should be aware of?]

Related issue

Copy link
Collaborator

@allyharrison allyharrison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good after adding one change 🙂

Copy link
Collaborator

@MahitGtg MahitGtg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just need some tests otherwise looks good.

@allyharrison allyharrison requested a review from MahitGtg June 30, 2025 10:16
@allyharrison allyharrison dismissed MahitGtg’s stale review June 30, 2025 10:17

discussed over discord

@allyharrison allyharrison merged commit 2dd4a44 into main Jun 30, 2025
5 checks passed
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.

Create custom user model
3 participants