X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/8c7b2c88a5a1e937f775c9375961526d39ee61eb..59e248d7a8f7994fdb456653c4a2898994457bd9:/apps/catalogue/models.py diff --git a/apps/catalogue/models.py b/apps/catalogue/models.py index 90ecb1a3c..37ea4e842 100644 --- 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)