imei files as optional
This commit is contained in:
parent
05ce547052
commit
1075eacd7b
@ -136,7 +136,7 @@ def sbt_validate_ocr_request_and_get(request, subscription):
|
||||
invoice_file = request.data.getlist('invoice_file')
|
||||
redemption_ID = request.data.get('redemption_ID', None)
|
||||
|
||||
FileUtils.validate_list_file(imei_files, file_field="imei_file")
|
||||
FileUtils.validate_list_file(imei_files, max_file_num=settings.MAX_UPLOAD_FILES_IN_A_REQUEST, min_file_num=0, file_field="imei_file")
|
||||
FileUtils.validate_list_file(invoice_file, max_file_num=1, min_file_num=0, file_field="invoice_file")
|
||||
|
||||
validated_data['imei_file'] = imei_files
|
||||
|
Loading…
Reference in New Issue
Block a user