X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/74378d009ec094bd52789bcb5f1a7be89c3509de..8132fc186eb0c5fd02c86828c3a4735754296d02:/apps/catalogue/models/image.py diff --git a/apps/catalogue/models/image.py b/apps/catalogue/models/image.py index 8f044d3e..646dd0ae 100755 --- a/apps/catalogue/models/image.py +++ b/apps/catalogue/models/image.py @@ -80,7 +80,8 @@ class Image(dvcs_models.Document): picture_xml = publishable.materialize() try: - picture = WLPicture.from_string(picture_xml.encode('utf-8'), + picture = WLPicture.from_bytes( + picture_xml.encode('utf-8'), image_store=SelfImageStore) except ParseError, e: raise AssertionError(_('Invalid XML') + ': ' + str(e))