NoReverseMatch when adding tag to circuits.Provider #4408

Closed
opened 2025-12-29 18:35:45 +01:00 by adam · 0 comments
Owner

Originally created by @steffann on GitHub (Dec 27, 2020).

Originally assigned to: @jeremystretch on GitHub.

Environment

  • Python version: 3.8.0
  • NetBox version: 2.10.2

Steps to Reproduce

  1. Create a Tag, for example "Demo Tag"
  2. Create a Circuit Provider, for example "Demo Provider"
  3. So far so good
  4. Edit "Demo Provider"
  5. Add "Demo Tag" to "Demo Provider"
  6. Saving is successful, but the details page (/circuits/providers/demo-provider/) aborts with a NoReverseMatch exception:

Expected Behavior

The details page of "Demo Provider".

Observed Behavior

NoReverseMatch at /circuits/providers/demo-provider/

Reverse for 'object_list' not found. 'object_list' is not a valid view function or pattern name.

Analysis

The error seems to be caused by the following line in templates/circuits/provider.html:

{% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='circuits:object_list' %}

Changing this to the following fixes the problem:

{% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='circuits:provider_list' %}
Originally created by @steffann on GitHub (Dec 27, 2020). Originally assigned to: @jeremystretch on GitHub. ### Environment * Python version: 3.8.0 * NetBox version: 2.10.2 ### Steps to Reproduce 1. Create a Tag, for example "Demo Tag" 2. Create a Circuit Provider, for example "Demo Provider" 3. So far so good 4. Edit "Demo Provider" 5. Add "Demo Tag" to "Demo Provider" 6. Saving is successful, but the details page (`/circuits/providers/demo-provider/`) aborts with a `NoReverseMatch` exception: ### Expected Behavior The details page of "Demo Provider". ### Observed Behavior ``` NoReverseMatch at /circuits/providers/demo-provider/ Reverse for 'object_list' not found. 'object_list' is not a valid view function or pattern name. ``` ### Analysis The error seems to be caused by the following line in `templates/circuits/provider.html`: ``` {% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='circuits:object_list' %} ``` Changing this to the following fixes the problem: ``` {% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='circuits:provider_list' %} ```
adam added the type: bugstatus: accepted labels 2025-12-29 18:35:45 +01:00
adam closed this issue 2025-12-29 18:35:45 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4408