P-54
Добавить даты в сторе
This commit is contained in:
1 parent
df9a32223c
commit
76dd9c80b8
8 files changed
+275
-171
No files matched your search
@@ -50,11 +50,11 @@ class GetVacancies(ListAPIView):
|
||||
|
||||
class PostResponseVacancies(ListAPIView):
|
||||
def post(self, request):
|
||||
print('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!')
|
||||
|
||||
a = ResponseVacancy.objects.create(**json.loads(request.data['data']), file = request.data['file'] if 'file' in request.data else None)
|
||||
|
||||
data = {'sendto':[a.vacancy.department.id_chief.lotus], 'subject': f'Отклик на вакансию {a.vacancy.name} от {a.fio}', 'body_text':f'Почта:{a.email} ----- Телефон: {a.tel} ---- Сопроводительное письмо: {a.text}'}
|
||||
|
||||
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}'}
|
||||
|
||||
try:
|
||||
requests.post('http://10.252.44.13:8005/', data = data, files = [request.data['file']] if 'file' in request.data else [], timeout=2)
|
||||
except Exception as e:
|
||||
|
||||
Reference in new issue
Block a user