Move form feature mixin classes from extras to netbox #8869

Closed
opened 2025-12-29 20:42:22 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Nov 22, 2023).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

Move the following classes from extras.forms.mixins to netbox.forms.mixins:

  • CustomFieldsMixin
  • SavedFiltersMixin
  • TagsMixin

Justification

This will clean up the form hierarchy a bit, and help avoid circular imports. We currently have a hack in place specifically to avoid this:

d52a6d3b10/netbox/extras/admin.py (L1-L2)

Additionally, it has come up again during work on #14312.

Originally created by @jeremystretch on GitHub (Nov 22, 2023). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes Move the following classes from `extras.forms.mixins` to `netbox.forms.mixins`: - CustomFieldsMixin - SavedFiltersMixin - TagsMixin ### Justification This will clean up the form hierarchy a bit, and help avoid circular imports. We currently have a hack in place specifically to avoid this: https://github.com/netbox-community/netbox/blob/d52a6d3b1090f408882e0875e04fb739fb492b75/netbox/extras/admin.py#L1-L2 Additionally, it has come up again during work on #14312.
adam added the status: acceptedtype: housekeeping labels 2025-12-29 20:42:22 +01:00
adam closed this issue 2025-12-29 20:42:22 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8869