Skip to content
Snippets Groups Projects
Commit 99fda1d1 authored by baoshun yan's avatar baoshun yan
Browse files

redirect to files page after uploading

parent 0b7a4ab0
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ def upload_file(request):
form = AudioFileForm(request.POST, request.FILES)
if form.is_valid():
form.save()
return redirect('home')
return redirect('files')
else:
form = AudioFileForm()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment