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

Custom user model #471

Merged
merged 5 commits into from
May 6, 2023
Merged

Conversation

dpgraham4401
Copy link
Member

Description

This PR adds a custom user model, HaztrakUser, to the core app as recommended by the django documentation. All apps (beside core) when referencing the user model should reference settings.AUTH_USER_MODEL instead of User from django's Auth module.

We also adjusted the admin site so it does not show DRF Authentication Token model in the admin site. URLs were adjust to point to the new user model, pytest fixtures updated, and foreign keys updated.

Anyone that has previously setup a development environment will need to recreate the necessary docker containers/volume.

Issue ticket number and link

closes #410

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

@github-actions github-actions bot added database changes that require modification to the database schema server Related to backend workings (Django/Rest API) labels May 6, 2023
@dpgraham4401 dpgraham4401 merged commit f10ca1a into USEPA:main May 6, 2023
@dpgraham4401 dpgraham4401 deleted the custom_user_model branch May 6, 2023 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database changes that require modification to the database schema server Related to backend workings (Django/Rest API)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Django AUTH_USER_MODEL
1 participant