Fixes import paths

This commit is contained in:
Mouse Reeve 2021-01-19 07:15:08 -08:00
parent 1c1492d468
commit 1048688284

View file

@ -43,7 +43,7 @@ class Import(View):
except (UnicodeDecodeError, ValueError):
return HttpResponseBadRequest('Not a valid csv file')
goodreads_import.start_import(job)
return redirect('/import-status/%d' % job.id)
return redirect('/import/%d' % job.id)
return HttpResponseBadRequest()
@ -80,4 +80,4 @@ class ImportStatus(View):
items,
)
goodreads_import.start_import(job)
return redirect('/import-status/%d' % job.id)
return redirect('/import/%d' % job.id)