Начата работа по вкладке голосования созданы модели для БД добавлен скелет по сбору информации по глосованиям
This commit is contained in:
1 parent
da9ad0367e
commit
dfc412dfc8
10 files changed
+80
No files matched your search
@@ -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')
|
||||
Reference in new issue
Block a user