mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-13 19:18:16 -06:00
It was replaced the lines 433 with "return redirect(self.get_return_url(request))". The toast is displayed with the message if the IP Address is protected.
This commit is contained in:
parent
2214b8ad5f
commit
2b7c7ceab4
@ -425,7 +425,7 @@ class ObjectDeleteView(GetReturnURLMixin, BaseObjectView):
|
||||
except (ProtectedError, RestrictedError) as e:
|
||||
logger.info(f"Caught {type(e)} while attempting to delete objects")
|
||||
handle_protectederror([obj], request, e)
|
||||
return redirect(self.get_return_url(request))
|
||||
return redirect(obj.get_absolute_url())
|
||||
|
||||
except AbortRequest as e:
|
||||
logger.debug(e.message)
|
||||
|
Loading…
Reference in New Issue
Block a user