Добавление информирования отпуска

This commit is contained in:
iriska-gri committed 2023-09-28 16:12:07 +03:00
1 parent 8593612059
commit a78f9eea3b
25 files changed
+91 -34

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ class Counter(ListAPIView):
# return Response(qs)
def post(self, request):
print(request.data['user__id'])
# print(request.data['user__id'])
if request.data['user__id'] is not None:
# print("sdddddd")
watch,create = CountVisitor.objects.get_or_create(user = User(id=request.data['user__id']),page=request.data['page'], visitdate=date.today())