This commit is contained in:
iriska-gri committed 2024-07-08 16:42:44 +03:00
1 parent 11f45daf67
commit 41ec40fedb
9 files changed
+199 -101

No files matched your search

+3 -1
View File
@@ -50,8 +50,10 @@ class GetVacancies(ListAPIView):
class PostResponseVacancies(ListAPIView):
def post(self, request):
a = ResponseVacancy.objects.create(**json.loads(request.data['data']), file = request.data['file'] if 'file' in request.data else None)
print(request.data, 'aaaaaaaaaaaaaa')
okib = DictDepartment.objects.get(id=22)
data = {'sendto':[a.vacancy.department.id_chief.lotus, okib.id_chief.lotus], 'subject': f'Отклик на вакансию {a.vacancy.name} от {a.fio}', 'body_text':f'Почта:{a.email} ----- Телефон: {a.tel} ---- Сопроводительное письмо: {a.text}'}
+9 -1
View File
@@ -146,17 +146,25 @@ class MyEvents(APIView):
# 'files':[]
# })
created=True
try:
event = json.loads(request.data['event'])
# event = json.loads(event)
filesadd = request.FILES.getlist('files')
# participant=request.POST['participant']
participant= event['participant']
event['calendar']=Calendar(id=event['calendar'])
participant = event['participant']
files = [x['id'] for x in event['files']]
del event['files']
del event['participant']
evnt=None
if 'id' in event: