Private
Public Access
1
0

Adding Course Update

This commit is contained in:
Sander Roosendaal
2020-05-26 18:21:56 +02:00
parent 496f265908
commit 0eef902ccc
4 changed files with 5 additions and 4 deletions

View File

@@ -531,7 +531,6 @@ def standards_upload_view(request,id=0):
if request.method == 'POST':
print(request.POST)
form = StandardsForm(request.POST,request.FILES)
if form.is_valid():
@@ -542,7 +541,7 @@ def standards_upload_view(request,id=0):
filename,path_and_filename = handle_uploaded_file(f)
id = save_scoring(name,request.user,path_and_filename,notes=notes,id=id)
print(notes)
os.remove(path_and_filename)
@@ -567,7 +566,6 @@ def standards_upload_view(request,id=0):
return HttpResponseRedirect(url)
else:
messages.error(request,'Form is not valid')
print(form.errors)
return render(request,'standard_form.html',
{'form':form,
})