mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 03:56:53 -06:00
Fixed object return_url resolution for bulk editing
This commit is contained in:
parent
d70ef4d3b3
commit
6ddbd79fe6
@ -60,7 +60,7 @@ class GetReturnURLMixin(object):
|
|||||||
return query_param
|
return query_param
|
||||||
|
|
||||||
# Next, check if the object being modified (if any) has an absolute URL.
|
# Next, check if the object being modified (if any) has an absolute URL.
|
||||||
elif obj.pk and hasattr(obj, 'get_absolute_url'):
|
elif obj is not None and obj.pk and hasattr(obj, 'get_absolute_url'):
|
||||||
return obj.get_absolute_url()
|
return obj.get_absolute_url()
|
||||||
|
|
||||||
# Fall back to the default URL (if specified) for the view.
|
# Fall back to the default URL (if specified) for the view.
|
||||||
|
Loading…
Reference in New Issue
Block a user