#20048 add get_action_url utility function

This commit is contained in:
Arthur 2025-08-07 14:26:40 -07:00
parent a4975720d4
commit a47746d708

View File

@ -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