Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
User get_user_model() rather than importing User directly
This is the recommended way to reference the user model according to the documentation[1]. It should be supported by at least Django 4, so can be assumed to work for NetBox releases older than 4.0 as well. I have only tested it with 4.0(.1) though. [1] https://docs.djangoproject.com/en/5.0/topics/auth/customizing/#referencing-the-user-model
- Loading branch information