Начата работа по вкладке голосования созданы модели для БД добавлен скелет по сбору информации по глосованиям

This commit is contained in:
Andrei Filippov committed 2024-09-26 17:12:22 +03:00
1 parent da9ad0367e
commit dfc412dfc8
10 files changed
+80

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
from rest_framework.views import APIView
from rest_framework.response import Response
from .models import *
# Create your views here.
class GetThanks(APIView):
def get(self, request):
cand_id = request.GET.get('id')
req_cand = ThanksVote.objects.filter(cand_name_id = cand_id, thanks = True)
print(f'candidate_id: {req_cand}')
return Response('test')