Commit 47a5bed0 authored by Robert's avatar Robert

Redirect to gestalt profile after content delete, refs #574

parent 1474cc33
......@@ -49,4 +49,4 @@ class Delete(AssociationMixin, core.views.PermissionMixin, django.views.generic.
return self.get_association()
def get_success_url(self):
return self.object.entity.get_absolute_url()
return self.object.entity.get_profile_url()
......@@ -91,6 +91,9 @@ class Group(core.models.Model):
return self.name
def get_absolute_url(self):
return self.get_profile_url()
def get_profile_url(self):
return urls.reverse(
'entity', args=[type(self).objects.get(pk=self.pk).slug])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment