Allow Job to have custom detail views #10139

Closed
opened 2025-12-29 21:27:21 +01:00 by adam · 1 comment
Owner

Originally created by @amyasnikov on GitHub (Aug 25, 2024).

Proposed Changes

Most of the NetBox models can have custom detail views (and tabs) registered using utilities.views.register_model_view, but core.Job cannot have these custom views because core.urls.urlpatterns lacks of this line:

path('jobs/<int:pk>/', include(get_model_urls('core', 'job')))

I suggest to add the line above to the core.urls.urlpatterns

Justification

The proposed change will put core.Job model in consistency with most of the other NetBox models and allow plugins to add extra tabs to the Job detail view.

Originally created by @amyasnikov on GitHub (Aug 25, 2024). ### Proposed Changes Most of the NetBox models can have custom detail views (and tabs) registered using `utilities.views.register_model_view`, but `core.Job` cannot have these custom views because `core.urls.urlpatterns` [lacks](https://github.com/netbox-community/netbox/blob/develop/netbox/core/urls.py#L22) of this line: ```python path('jobs/<int:pk>/', include(get_model_urls('core', 'job'))) ``` I suggest to add the line above to the `core.urls.urlpatterns` ### Justification The proposed change will put `core.Job` model in consistency with most of the other NetBox models and allow plugins to add extra tabs to the Job detail view.
adam closed this issue 2025-12-29 21:27:21 +01:00
Author
Owner

@jeremystretch commented on GitHub (Aug 26, 2024):

Per the issue template:

This template is for use by maintainers only. Please do not submit an issue using this template unless you have been specifically asked to do so.

@jeremystretch commented on GitHub (Aug 26, 2024): Per the issue template: > This template is for use by maintainers only. Please do not submit an issue using this template unless you have been specifically asked to do so.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10139