fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3af7284
)
was throwing TypeError("save() got an unexpected keyword argument 'using'",)
author
Krzysztof Lityński
<krzysztof@bibliosfera.net>
Wed, 4 Aug 2010 11:58:52 +0000
(
04:58
-0700)
committer
Krzysztof Lityński
<krzysztof@bibliosfera.net>
Wed, 4 Aug 2010 11:58:52 +0000
(
04:58
-0700)
before.
apps/catalogue/forms.py
patch
|
blob
|
history
diff --git
a/apps/catalogue/forms.py
b/apps/catalogue/forms.py
index
e2f52b0
..
6a33456
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()
- 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):