mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-16 08:23:12 +00:00
[Printer] Handles submission of empty files
This commit is contained in:
parent
663ade9765
commit
5d85fd1b74
1 changed files with 1 additions and 4 deletions
|
@ -84,9 +84,7 @@ def new_job(request):
|
|||
i+=1
|
||||
job_formset_filled_in = formset_factory(PrintForm, extra=0)(
|
||||
initial=data,
|
||||
# jids=jids,
|
||||
form_kwargs={'user': request.user,
|
||||
},
|
||||
form_kwargs={'user': request.user},
|
||||
)
|
||||
|
||||
if job_formset.total_error_count() == 0:
|
||||
|
@ -150,7 +148,6 @@ def new_job(request):
|
|||
|
||||
### GET request
|
||||
else:
|
||||
# raise Exception("Coucou2")
|
||||
job_formset = formset_factory(JobWithOptionsForm)(
|
||||
form_kwargs={'user': request.user}
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue