Correct URL resolution for plugin models using journal entries #6151

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

Originally created by @jeremystretch on GitHub (Feb 28, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.2.0-beta1

Python version

3.8

Steps to Reproduce

  1. Enable ObjectJournalView for a plugin model. For example:
    path("my-model/<int:pk>/journal/", ObjectJournalView.as_view(), name="mymodel_journal", kwargs={"model": MyModel}),
  1. Create a journal entry for an instance of that model.

(This bug was originally reported by @peteeckel under WG8333.)

Expected Behavior

The JournalEntry should be created and the user should be redirected to the object's journal view.

Observed Behavior

The JournalEntry object is created, however an exception is then raised:

<class 'django.urls.exceptions.NoReverseMatch'>

'netbox_dns' is not a registered namespace

Python version: 3.8.11
NetBox version: 3.2.0-beta1
Originally created by @jeremystretch on GitHub (Feb 28, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.2.0-beta1 ### Python version 3.8 ### Steps to Reproduce 1. Enable ObjectJournalView for a plugin model. For example: ``` path("my-model/<int:pk>/journal/", ObjectJournalView.as_view(), name="mymodel_journal", kwargs={"model": MyModel}), ``` 2. Create a journal entry for an instance of that model. (This bug was originally reported by @peteeckel under WG8333.) ### Expected Behavior The JournalEntry should be created and the user should be redirected to the object's journal view. ### Observed Behavior The JournalEntry object is created, however an exception is then raised: ``` <class 'django.urls.exceptions.NoReverseMatch'> 'netbox_dns' is not a registered namespace Python version: 3.8.11 NetBox version: 3.2.0-beta1 ```
adam added the type: bugstatus: acceptedbeta labels 2025-12-29 19:37:23 +01:00
adam closed this issue 2025-12-29 19:37:23 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6151