Skip to content

Commit

Permalink
Delete user upload after create civ for file
Browse files Browse the repository at this point in the history
  • Loading branch information
ammar257ammar committed Dec 18, 2024
1 parent 1739b40 commit ef2eef4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/grandchallenge/components/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1288,6 +1288,7 @@ def add_file_to_object(
civ.full_clean()
civ.save()
user_upload.copy_object(to_field=civ.file)
user_upload.delete()
except ValidationError as e:
error_handler.handle_error(
interface=interface,
Expand Down

0 comments on commit ef2eef4

Please sign in to comment.