X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ddaff853c515ef7d188523d9ef17d271901dd581..0e79f07515678e3e678c3637124a27cb81ee8a94:/apps/catalogue/forms.py?ds=sidebyside diff --git a/apps/catalogue/forms.py b/apps/catalogue/forms.py index 480eddff7..d52310bd3 100644 --- a/apps/catalogue/forms.py +++ b/apps/catalogue/forms.py @@ -100,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)