Remove calls to get_user_model() #10032

Closed
opened 2025-12-29 21:25:58 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Jul 31, 2024).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

Replace all calls to Django's get_user_model() utility function with direct import of our custom User model.

Justification

While using this function is considered best practice for standalone Django apps, it is unnecessary in NetBox as swapping out the local User model is not supported.

Originally created by @jeremystretch on GitHub (Jul 31, 2024). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes Replace all calls to Django's `get_user_model()` utility function with direct import of our custom User model. ### Justification While using this function is considered best practice for standalone Django apps, it is unnecessary in NetBox as swapping out the local User model is not supported.
adam added the status: acceptedtype: housekeeping labels 2025-12-29 21:25:58 +01:00
adam closed this issue 2025-12-29 21:25:58 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10032