mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-28 15:42:25 +00:00
[Printer] Propagate correctly ValidationError
This commit is contained in:
parent
1891654756
commit
a01ff3b88f
1 changed files with 3 additions and 1 deletions
|
@ -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)(
|
||||
|
|
Loading…
Reference in a new issue