Skip to content

Commit f909673

Browse files
authored
Merge pull request #32 from PROCOLLAB-github/dev
fixed file deletion not working
2 parents cec958e + 194e20a commit f909673

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

files/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ def delete(self, request, *args, **kwargs):
4343
if instance.user != request.user:
4444
return Response(status=status.HTTP_403_FORBIDDEN)
4545
FileAPI.delete(instance.link) # delete the file via api
46-
self.perform_destroy(instance)
46+
instance.delete() # delete the UserFile object
4747
return Response(status=status.HTTP_204_NO_CONTENT)

0 commit comments

Comments
 (0)