Skip to content

NoReverseMatch when adding tag to circuits.Provider #5540

@steffann

Description

@steffann

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' %}

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions