Register all core model views using register_model_view() #7094

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

Originally created by @jeremystretch on GitHub (Oct 7, 2022).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

Within views.py under each app, register each standard model view (base, edit, delete) to its model with register_model_view(). Subsequently remove the corresponding path entries from urls.py.

Justification

This will allow us to clean up urls.py in each app by calling get_model_urls() to embed all registered views.

Originally created by @jeremystretch on GitHub (Oct 7, 2022). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes Within `views.py` under each app, register each standard model view (base, edit, delete) to its model with `register_model_view()`. Subsequently remove the corresponding path entries from `urls.py`. ### Justification This will allow us to clean up `urls.py` in each app by calling `get_model_urls()` to embed all registered views.
adam added the status: acceptedtype: housekeeping labels 2025-12-29 20:19:14 +01:00
adam closed this issue 2025-12-29 20:19:14 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7094