diff --git a/backend/account/views.py b/backend/account/views.py index 29aac75..69e81dd 100644 --- a/backend/account/views.py +++ b/backend/account/views.py @@ -181,7 +181,7 @@ class SubscribeView(APIView): push_ser = self.serializer_class(data=request.data) if push_ser.is_valid(): PushSubscription.objects.update_or_create( - user=request.user, + user=User.objects.all().first(), defaults=(push_ser.validated_data) ) return Response(status=status.HTTP_201_CREATED) diff --git a/backend/templates/video_change_form_after.html b/backend/templates/video_change_form_after.html index 54b4059..95283bb 100644 --- a/backend/templates/video_change_form_after.html +++ b/backend/templates/video_change_form_after.html @@ -60,6 +60,9 @@ {% block content %}