Reverse for 'tag' with arguments '('',)' not found. #3035

Closed
opened 2025-12-29 18:24:58 +01:00 by adam · 2 comments
Owner

Originally created by @beh0ld on GitHub (Nov 26, 2019).

Environment

  • Python version: Python 3.6.8
  • NetBox version: netbox-2.6.1

Steps to Reproduce

1.Log in
2.Create new circuit

time,user,user_name,request_id,action,changed_object_type,changed_object_id,related_object_type,related_object_id,object_repr,object_data
2019-11-26T08:10:41.280481+00:00,belov-nn,belov-nn,51518d43-5360-47e3-bd4d-3858d4ad2608,Created,tag,6,,,ижевск,"{'name': 'ижевск', 'slug': '', 'color': '9e9e9e', 'created': '2019-11-26', 'comments': '', 'last_updated': '2019-11-26T08:10:41.208Z'}"
2019-11-26T08:10:41.275032+00:00,belov-nn,belov-nn,51518d43-5360-47e3-bd4d-3858d4ad2608,Created,circuit,1,,,rt,"{'cid': 'rt', 'tags': ['ижевск'], 'type': 2, 'status': 1, 'tenant': 1, 'created': '2019-11-26', 'comments': 'г.Ижевск, ООО «XXX» к Договору об оказании Услуг связи № XXX от 09.06.2016 г.', 'provider': 1, 'commit_rate': 10000, 'description': '', 'install_date': None, 'last_updated': '2019-11-26T08:10:41.177Z', 'custom_fields': {}}"

3.Home and Tag page error

The complete exception is provided below:

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

Reverse for 'tag' with arguments '('',)' not found. 1 pattern(s) tried: ['extras\/tags\/(?P[-a-zA-Z0-9_]+)\/$']
If further assistance is required, please post to the NetBox mailing list.

Expected Behavior

Created new circuit

Observed Behavior

Home and Tag page error

The complete exception is provided below:

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

Reverse for 'tag' with arguments '('',)' not found. 1 pattern(s) tried: ['extras\/tags\/(?P[-a-zA-Z0-9_]+)\/$']
If further assistance is required, please post to the NetBox mailing list.

Originally created by @beh0ld on GitHub (Nov 26, 2019). ### Environment * Python version: Python 3.6.8 * NetBox version: netbox-2.6.1 ### Steps to Reproduce 1.Log in 2.Create new circuit ``` time,user,user_name,request_id,action,changed_object_type,changed_object_id,related_object_type,related_object_id,object_repr,object_data 2019-11-26T08:10:41.280481+00:00,belov-nn,belov-nn,51518d43-5360-47e3-bd4d-3858d4ad2608,Created,tag,6,,,ижевск,"{'name': 'ижевск', 'slug': '', 'color': '9e9e9e', 'created': '2019-11-26', 'comments': '', 'last_updated': '2019-11-26T08:10:41.208Z'}" 2019-11-26T08:10:41.275032+00:00,belov-nn,belov-nn,51518d43-5360-47e3-bd4d-3858d4ad2608,Created,circuit,1,,,rt,"{'cid': 'rt', 'tags': ['ижевск'], 'type': 2, 'status': 1, 'tenant': 1, 'created': '2019-11-26', 'comments': 'г.Ижевск, ООО «XXX» к Договору об оказании Услуг связи № XXX от 09.06.2016 г.', 'provider': 1, 'commit_rate': 10000, 'description': '', 'install_date': None, 'last_updated': '2019-11-26T08:10:41.177Z', 'custom_fields': {}}" ``` 3.Home and Tag page error The complete exception is provided below: <class 'django.urls.exceptions.NoReverseMatch'> Reverse for 'tag' with arguments '('',)' not found. 1 pattern(s) tried: ['extras\\/tags\\/(?P<slug>[-a-zA-Z0-9_]+)\\/$'] If further assistance is required, please post to the NetBox mailing list. ### Expected Behavior Created new circuit ### Observed Behavior Home and Tag page error The complete exception is provided below: <class 'django.urls.exceptions.NoReverseMatch'> Reverse for 'tag' with arguments '('',)' not found. 1 pattern(s) tried: ['extras\\/tags\\/(?P<slug>[-a-zA-Z0-9_]+)\\/$'] If further assistance is required, please post to the NetBox mailing list.
adam closed this issue 2025-12-29 18:24:58 +01:00
Author
Owner

@beh0ld commented on GitHub (Nov 26, 2019):

Resolve with ntshell, just delete broken tag with empty slug.

>>> Tag.objects.filter(slug='').count()
1
>>> Tag.objects.filter(slug='').delete()
(1, {'extras.Tag': 1})
>>> Tag.objects.filter(slug='').count()
0
@beh0ld commented on GitHub (Nov 26, 2019): Resolve with ntshell, just delete broken tag with empty slug. ``` >>> Tag.objects.filter(slug='').count() 1 >>> Tag.objects.filter(slug='').delete() (1, {'extras.Tag': 1}) >>> Tag.objects.filter(slug='').count() 0 ```
Author
Owner

@jeremystretch commented on GitHub (Nov 26, 2019):

None of the steps to reproduce you've included above make sense. Please revise this issue following the instructions in the issue template if you'd like it to be reopened.

@jeremystretch commented on GitHub (Nov 26, 2019): None of the steps to reproduce you've included above make sense. Please revise this issue following the instructions in the issue template if you'd like it to be reopened.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3035