Skip to content

Commit

Permalink
Update views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Sep 3, 2024
1 parent 06cce21 commit 0843568
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion atlasserver/forcephot/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ def perform_create(self, serializer) -> None:
if usertaskcount > maximgziptasks:
msg = f"You have too many IMGZIP tasks ({usertaskcount} > {maximgziptasks}). Issue delete requests to remove some."
raise ValidationError(msg)
serializer.save(user=self.request.user)
# serializer.save(user=self.request.user)

extra_fields: dict[str, Any] = {
"user": self.request.user,
"timestamp": datetime.datetime.now(datetime.UTC).replace(microsecond=0).isoformat(),
Expand Down

0 comments on commit 0843568

Please sign in to comment.