mirror of
https://github.com/netbox-community/netbox.git
synced 2025-09-06 14:23:36 -06:00
#20048 add get_action_url utility function
This commit is contained in:
parent
a4975720d4
commit
a47746d708
@ -150,7 +150,7 @@ class GetReturnURLMixin:
|
|||||||
# Attempt to dynamically resolve the list view for the object
|
# Attempt to dynamically resolve the list view for the object
|
||||||
if hasattr(self, 'queryset'):
|
if hasattr(self, 'queryset'):
|
||||||
try:
|
try:
|
||||||
return reverse(get_viewname(self.queryset.model, 'list'))
|
return get_action_url(self.queryset.model, action='list')
|
||||||
except NoReverseMatch:
|
except NoReverseMatch:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user