p-10 help

This commit is contained in:
Andrei Filippov committed 2024-05-28 16:40:24 +03:00
1 parent ea16cacc8a
commit 0998ec54b1
2 files changed
+47 -8

No files matched your search

+9 -8
View File
@@ -70,12 +70,13 @@ class ExclusionDatesAPIView(APIView):
print(formonth, 'formonthformonthformonth')
return Response('ru')
class GetCalendars(ListAPIView):
def get(self, request):
queryset = Calendar.objects.filter(user=request.user)
return Response(CalendarSerializer(queryset, many=True).data)
return Response(formonth)
class GetCalendars(APIView):
def get(self, request):
calendar_patricipants = CalendarPatricipants.objects.filter(patrcipant_calendar = self.request.user.id)
cld_event = TableEventParticipant.objects.filter(participant_event = self.request.user.id)
return Response(UserCalendarsSerializer(calendar_patricipants,cld_event,many=True).data)