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
|
||||
if hasattr(self, 'queryset'):
|
||||
try:
|
||||
return reverse(get_viewname(self.queryset.model, 'list'))
|
||||
return get_action_url(self.queryset.model, action='list')
|
||||
except NoReverseMatch:
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user