Browse Source

iss45: fix indent for return in the import batching

pull/55/head
serhii.nechyporchuk 5 years ago
parent
commit
198da95cd5
1 changed files with 1 additions and 1 deletions
  1. 2
      app/server/views.py

2
app/server/views.py

@ -129,7 +129,7 @@ class DataUpload(SuperUserMixin, LoginRequiredMixin, TemplateView):
break break
Document.objects.bulk_create(batch, batch_size=batch_size) Document.objects.bulk_create(batch, batch_size=batch_size)
return HttpResponseRedirect(reverse('dataset', args=[project.id]))
return HttpResponseRedirect(reverse('dataset', args=[project.id]))
except DataUpload.ImportFileError as e: except DataUpload.ImportFileError as e:
messages.add_message(request, messages.ERROR, e.message) messages.add_message(request, messages.ERROR, e.message)
return HttpResponseRedirect(reverse('upload', args=[project.id])) return HttpResponseRedirect(reverse('upload', args=[project.id]))

Loading…
Cancel
Save