Merge "Fix exception error when creating audit without audit template"
This commit is contained in:
commit
3e5ad22b60
@ -82,7 +82,7 @@ class CreateForm(forms.SelfHandlingForm):
|
|||||||
|
|
||||||
def handle(self, request, data):
|
def handle(self, request, data):
|
||||||
try:
|
try:
|
||||||
params = {'audit_template_uuid': data['audit_template']}
|
params = {'audit_template_uuid': data.get('audit_template')}
|
||||||
params['audit_type'] = data['audit_type'].upper()
|
params['audit_type'] = data['audit_type'].upper()
|
||||||
params['auto_trigger'] = data['auto_trigger']
|
params['auto_trigger'] = data['auto_trigger']
|
||||||
if data['audit_type'] == 'continuous':
|
if data['audit_type'] == 'continuous':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user