Commit cdbc1255 authored by Gladys Forte's avatar Gladys Forte

cr prefix, draft post

parent d65e8761
......@@ -1239,7 +1239,21 @@ class ChangeRequestFormPost(APIView):
template_no=template_no
).values('requested_to_template_id')
print(CR_Prefix)
CR_Prefix = CR_Prefix.values_list('requested_to_template_id', flat=True)[0]
models.ChangeRequestFormHeader.objects.filter(
form_code=frm_id
).update(requested_to_template_id=CR_Prefix)
models.ChangeRequestFormApprovers.objects.filter(
form_code=frm_id
).update(
is_action=False,
action=None,
remarks=None,
action_date=None,
date_sent=None
)
message = {
'code': 201,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment