fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed widget colors
[wolnelektury.git]
/
apps
/
catalogue
/
forms.py
diff --git
a/apps/catalogue/forms.py
b/apps/catalogue/forms.py
index
9359837
..
3aceb4f
100644
(file)
--- 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()
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):
class SearchForm(forms.Form):