From 5d85fd1b74465301cfdb351f4886b96ddca4942e Mon Sep 17 00:00:00 2001 From: Maxime Bombar Date: Sun, 21 Oct 2018 22:31:21 +0200 Subject: [PATCH] [Printer] Handles submission of empty files --- printer/views.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/printer/views.py b/printer/views.py index 14c086e3..909ddd24 100644 --- a/printer/views.py +++ b/printer/views.py @@ -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} )