X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/916aa587c9cc241044c57493f5f4aea5d0b7a2de..a04c45a413c5b6ed0b8a74d3473a762b45f55fab:/apps/catalogue/forms.py diff --git a/apps/catalogue/forms.py b/apps/catalogue/forms.py index 935983734..3aceb4f86 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):