fix: issue attachment delete (#759)
This commit is contained in:
parent
5190ea7280
commit
440ed08728
1 changed files with 1 additions and 0 deletions
|
|
@ -772,6 +772,7 @@ class IssueAttachmentEndpoint(BaseAPIView):
|
|||
def delete(self, request, slug, project_id, issue_id, pk):
|
||||
try:
|
||||
issue_attachment = IssueAttachment.objects.get(pk=pk)
|
||||
issue_attachment.asset.delete(save=False)
|
||||
issue_attachment.delete()
|
||||
issue_activity.delay(
|
||||
type="attachment.activity.deleted",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue