mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-28 11:26:26 -06:00
Fixes #854: Correct processing of get_return_url() in ObjectDeleteView
This commit is contained in:
parent
9eb49bdcb4
commit
aab85345c9
@ -267,7 +267,7 @@ class ObjectDeleteView(View):
|
||||
if return_url and is_safe_url(url=return_url, host=request.get_host()):
|
||||
return redirect(return_url)
|
||||
else:
|
||||
return redirect(self.default_return_url)
|
||||
return redirect(self.get_return_url(obj))
|
||||
|
||||
return render(request, self.template_name, {
|
||||
'obj': obj,
|
||||
|
Loading…
Reference in New Issue
Block a user