Allow Job to have custom detail views #10138

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

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

NetBox version

v4.0.9

Feature type

Change to existing functionality

Proposed functionality

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

Use case

With the proposed change plugin maintainers will be allowed to add extra tabs to Job detail view.

Moreover, the proposed change will just put core.Job model in consistency with the most of the other NetBox models which already have the corresponding include lines in the urlpatterns

Database changes

No response

External dependencies

No response

Originally created by @amyasnikov on GitHub (Aug 26, 2024). ### NetBox version v4.0.9 ### Feature type Change to existing functionality ### Proposed functionality 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` ### Use case With the proposed change plugin maintainers will be allowed to add extra tabs to Job detail view. Moreover, the proposed change will just put `core.Job` model in consistency with the most of the other NetBox models which already have the corresponding include lines in the urlpatterns ### Database changes _No response_ ### External dependencies _No response_
adam added the type: featurenetbox labels 2025-12-29 21:27:21 +01:00
adam closed this issue 2025-12-29 21:27:21 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jan 10, 2025):

I believe this functionality was added in a recent release, so I'm going to close this out. Please feel free to resubmit if you still encounter issues on NetBox v4.2.1 or later.

@jeremystretch commented on GitHub (Jan 10, 2025): I believe this functionality was added in a recent release, so I'm going to close this out. Please feel free to resubmit if you still encounter issues on NetBox v4.2.1 or later.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10138