Adding Course Update
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user