X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/2c968d7bbf97b820439c6a997de08cc3411abb07..3b4b52aebe1b09fe03b3314158f31c4ef83db425:/apps/catalogue/forms.py?ds=sidebyside diff --git a/apps/catalogue/forms.py b/apps/catalogue/forms.py index 5fb113c24..d52310bd3 100644 --- a/apps/catalogue/forms.py +++ b/apps/catalogue/forms.py @@ -46,6 +46,7 @@ CUSTOMIZATION_FLAGS = ( ('nofootnotes', _("Don't show footnotes")), ('nothemes', _("Don't disply themes")), ('nowlfont', _("Don't use our custom font")), + ('no-cover', _("Without cover")), ) CUSTOMIZATION_OPTIONS = ( ('leading', _("Leading"), ( @@ -99,8 +100,8 @@ class CustomPDFForm(forms.Form): # Don't build with default options, just redirect to the standard file. return {"redirect": self.book.pdf_file.url} url = WaitedFile.order(self.cleaned_data['path'], - lambda p: build_custom_pdf.delay(self.book.id, - self.cleaned_data['cust'], p), + lambda p, waiter_id: build_custom_pdf.delay(self.book.id, + self.cleaned_data['cust'], p, waiter_id), self.book.pretty_title() ) #return redirect(url)