8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-24 20:33:11 +00:00

[Printer] Handles submission of empty files

This commit is contained in:
Maxime Bombar 2018-10-21 22:31:21 +02:00 committed by root
parent 663ade9765
commit 5d85fd1b74

View file

@ -84,9 +84,7 @@ def new_job(request):
i+=1 i+=1
job_formset_filled_in = formset_factory(PrintForm, extra=0)( job_formset_filled_in = formset_factory(PrintForm, extra=0)(
initial=data, initial=data,
# jids=jids, form_kwargs={'user': request.user},
form_kwargs={'user': request.user,
},
) )
if job_formset.total_error_count() == 0: if job_formset.total_error_count() == 0:
@ -150,7 +148,6 @@ def new_job(request):
### GET request ### GET request
else: else:
# raise Exception("Coucou2")
job_formset = formset_factory(JobWithOptionsForm)( job_formset = formset_factory(JobWithOptionsForm)(
form_kwargs={'user': request.user} form_kwargs={'user': request.user}
) )