aboutsummaryrefslogtreecommitdiffstats
path: root/client/views.py
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2022-06-07 15:33:12 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2022-06-07 15:33:12 +0200
commit5693af9a567e04fd4a65492872b3cce7193f77c0 (patch)
tree0209c647d62244ba288c49ee5b66384060d0efeb /client/views.py
parentadd helper text for custom keys (diff)
downloadscout-subs-5693af9a567e04fd4a65492872b3cce7193f77c0.tar.gz
scout-subs-5693af9a567e04fd4a65492872b3cce7193f77c0.zip
ask user if they want to approve the doc after creation
Diffstat (limited to 'client/views.py')
-rw-r--r--client/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/views.py b/client/views.py
index f69b614..86142ef 100644
--- a/client/views.py
+++ b/client/views.py
@@ -228,7 +228,7 @@ def create(request):
key = KeyVal(container=document, key=Keys.objects.get(id=i).key, value=request.POST[i])
key.save()
- return HttpResponseRedirect('/')
+ return HttpResponseRedirect('/?approve_doc=' + str(document.id))
return render(request, 'client/doc_create.html', context)