P-43 Допроверить данные
This commit is contained in:
1 parent
bd6fa2c94b
commit
aeb322199c
6 files changed
+75
-8
No files matched your search
@@ -7,4 +7,5 @@ urlpatterns = [
|
||||
path('calendarEvents/', CalendarEventsAPIView.as_view(), name='calendarEvents'),
|
||||
path('get_calendars/', GetCalendars.as_view(), name='get_calendars'),
|
||||
path('exclusionDatas/', ExclusionDatesAPIView.as_view(), name='exclusionDatas'),
|
||||
path('createEvents/', CreateEventsAPIView.as_view(), name='createEvents')
|
||||
]
|
||||
@@ -6,7 +6,7 @@ from rest_framework.generics import ListAPIView
|
||||
from rest_framework.response import Response
|
||||
import json
|
||||
from django.db.models.functions import TruncYear
|
||||
|
||||
from userauth.serializers import *
|
||||
|
||||
class CalendarEventsAPIView(APIView):
|
||||
|
||||
@@ -74,3 +74,10 @@ class GetCalendars(ListAPIView):
|
||||
def get(self, request):
|
||||
queryset = Calendar.objects.filter(user=request.user)
|
||||
return Response(CalendarSerializer(queryset, many=True).data)
|
||||
|
||||
class CreateEventsAPIView(APIView):
|
||||
def get(self, request):
|
||||
user = DictEmployee.objects.filter(deleted=0).order_by('id_dict_position__order_position','familyname')
|
||||
resp = InfoUserCardSerializer(user, many=True).data
|
||||
print(resp, 'ffffffffffffffffffffff')
|
||||
return Response(resp)
|
||||
Reference in new issue
Block a user