X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/a778b5b2bd97b5e26d90b668320fad23b6fc8b1a..9e81b1b5ad1a11035710f32ab2af4f57b471d206:/apps/catalogue/forms.py diff --git a/apps/catalogue/forms.py b/apps/catalogue/forms.py index 935983734..3ce88f417 100644 --- a/apps/catalogue/forms.py +++ b/apps/catalogue/forms.py @@ -14,8 +14,8 @@ from catalogue import utils class BookImportForm(forms.Form): book_xml_file = forms.FileField() - def save(self, commit=True): - return Book.from_xml_file(self.cleaned_data['book_xml_file'], overwrite=True) + def save(self, commit=True, **kwargs): + return Book.from_xml_file(self.cleaned_data['book_xml_file'], overwrite=True, **kwargs) class SearchForm(forms.Form): @@ -73,6 +73,7 @@ FORMATS = ( ('odt', 'ODT'), ('txt', 'TXT'), ('epub', 'EPUB'), + ('daisy', 'DAISY'), )