From 0843568691e42d468b02a3ad85185f0467881a81 Mon Sep 17 00:00:00 2001 From: Luke Shingles Date: Tue, 3 Sep 2024 11:52:26 +0100 Subject: [PATCH] Update views.py --- atlasserver/forcephot/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/atlasserver/forcephot/views.py b/atlasserver/forcephot/views.py index ec7825a..62850b2 100644 --- a/atlasserver/forcephot/views.py +++ b/atlasserver/forcephot/views.py @@ -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(),