Fixes #1113: Fixes server error when attempting to delete an image attachment

This commit is contained in:
Jeremy Stretch 2017-04-28 14:05:02 -04:00
parent 765f9e2681
commit 50651026de

View File

@ -27,4 +27,4 @@ class ImageAttachmentDeleteView(PermissionRequiredMixin, ObjectDeleteView):
model = ImageAttachment
def get_return_url(self, request, imageattachment):
return imageattachment.obj.get_absolute_url()
return imageattachment.parent.get_absolute_url()