Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct URL resolution for plugin models using journal entries #8761

Closed
jeremystretch opened this issue Feb 28, 2022 · 0 comments
Closed

Correct URL resolution for plugin models using journal entries #8761

jeremystretch opened this issue Feb 28, 2022 · 0 comments
Assignees
Labels
beta Concerns a bug/feature in a beta release status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@jeremystretch
Copy link
Member

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
@jeremystretch jeremystretch added type: bug A confirmed report of unexpected behavior in the application status: accepted This issue has been accepted for implementation beta Concerns a bug/feature in a beta release labels Feb 28, 2022
@jeremystretch jeremystretch self-assigned this Feb 28, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
beta Concerns a bug/feature in a beta release status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

1 participant