From 6ddbd79fe69a3da413a2459fa52fe26f7b3a3f5e Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 3 Jul 2018 09:49:36 -0400 Subject: [PATCH] Fixed object return_url resolution for bulk editing --- netbox/utilities/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/utilities/views.py b/netbox/utilities/views.py index e9e4b33a1..85df79f1a 100644 --- a/netbox/utilities/views.py +++ b/netbox/utilities/views.py @@ -60,7 +60,7 @@ class GetReturnURLMixin(object): return query_param # 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() # Fall back to the default URL (if specified) for the view.