fix [P-290]: добавление файла к событию
This commit is contained in:
1 parent
fc041bda3c
commit
739d2f03be
5 files changed
+15
-13
No files matched your search
@@ -20,11 +20,10 @@ class ExclusionDatesAPIView(APIView):
|
||||
year = self.request.query_params.get('year', datetime.now().year)
|
||||
exclude = ExclusionDates.objects.filter(exclusiondate__year=year)
|
||||
months = {}
|
||||
for i in range(1,12):
|
||||
for i in range(1,13):
|
||||
months[i] = exclude.filter(exclusiondate__month=i).values_list("exclusiondate", flat=True)
|
||||
return Response({year:months})
|
||||
|
||||
|
||||
class MyCalendars(APIView):
|
||||
|
||||
def get(self, request):
|
||||
|
||||
Reference in new issue
Block a user