Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update models.py - Referencing the User model (#127)
* Update models.py - Referencing the User model Referencing the User model as described in the django documentation https://docs.djangoproject.com/en/4.2/topics/auth/customizing/#referencing-the-user-model . This ensures that projects working with custom User models will also function correctly, and I believe this is considered best practice for referencing the user model in Django. * Fix up tests to use usermodel * User instead of UserModel, following consistent pattern for model naming Co-authored-by: Özgür <ozgurturkiye@gmail.com> * Remove spurious lines * Update catalog/tests/test_views.py * Update catalog/tests/test_views.py --------- Co-authored-by: Hamish Willee <hamishwillee@gmail.com> Co-authored-by: Özgür <ozgurturkiye@gmail.com>
- Loading branch information