fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
import fix
[wolnelektury.git]
/
apps
/
catalogue
/
models.py
diff --git
a/apps/catalogue/models.py
b/apps/catalogue/models.py
index
90ecb1a
..
37ea4e8
100644
(file)
--- a/
apps/catalogue/models.py
+++ b/
apps/catalogue/models.py
@@
-296,7
+296,7
@@
class Book(models.Model):
book_info = dcparser.parse(xml_file)
if not isinstance(xml_file, File):
- xml_file = File(
xml_file
)
+ xml_file = File(
open(xml_file)
)
try:
return cls.from_text_and_meta(xml_file, book_info, overwrite)