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:
Julio-Oliveira-Encora 2024-04-15 11:06:25 -03:00
parent 2214b8ad5f
commit 2b7c7ceab4

View File

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