Edit missing field error message.
This commit is contained in:
parent
fe5da22985
commit
f7e92f81af
@ -62,7 +62,7 @@ class UploadView(LoginRequiredMixin, FormView):
|
|||||||
for required_field in REQUIRED_FIELDS:
|
for required_field in REQUIRED_FIELDS:
|
||||||
if not required_field in module_info.keys():
|
if not required_field in module_info.keys():
|
||||||
return JsonResponse({'error': f'Field {required_field}\
|
return JsonResponse({'error': f'Field {required_field}\
|
||||||
is missing.'}, status=500)
|
is missing in infos.toml.'}, status=500)
|
||||||
shutil.rmtree(extract_path)
|
shutil.rmtree(extract_path)
|
||||||
os.remove(zip_path)
|
os.remove(zip_path)
|
||||||
if Module.objects.filter(name=module_info['name'].lower(),
|
if Module.objects.filter(name=module_info['name'].lower(),
|
||||||
|
Loading…
Reference in New Issue
Block a user