8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-16 08:23:12 +00:00

[Printer] Propagate correctly ValidationError

This commit is contained in:
Maxime Bombar 2018-10-16 13:47:52 +02:00 committed by root
parent 1891654756
commit a01ff3b88f

View file

@ -52,6 +52,8 @@ def new_job(request):
form_kwargs={'user': request.user},
)
tmp_job_formset = job_formset
if job_formset.is_valid():
files = request.FILES
data = []
@ -126,7 +128,7 @@ def new_job(request):
request.session['jids']=jids
return redirect('printer:payment')
raise Exception("Invalid Job_formset")
job_formset = tmp_job_formset
else:
job_formset = formset_factory(JobWithOptionsForm)(