mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 04:02:52 -06:00
Fixes #1113: Fixes server error when attempting to delete an image attachment
This commit is contained in:
parent
b8b912bdd5
commit
010f6c7f1a
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user