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}'}