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

User get_user_model() rather than importing User directly #180

Merged
merged 1 commit into from
May 12, 2024

Conversation

sleinen
Copy link
Contributor

@sleinen sleinen commented May 10, 2024

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

Closes #179

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
@lae lae merged commit 3d20efc into lae:develop May 12, 2024
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.

Creating NetBox superuser fails on NetBox 4.0
2 participants