-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
Environment
- Python version: 3.8.0
- NetBox version: 2.10.2
Steps to Reproduce
- Create a Tag, for example "Demo Tag"
- Create a Circuit Provider, for example "Demo Provider"
- So far so good
- Edit "Demo Provider"
- Add "Demo Tag" to "Demo Provider"
- Saving is successful, but the details page (
/circuits/providers/demo-provider/) aborts with aNoReverseMatchexception:
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' %}
Metadata
Metadata
Assignees
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application