X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/4fa05f4b9dc3567ab66a7a3a4827ea64b582a4ee..d7ff0fd306041461ff3f98d3709113f333756e5b:/apps/picture/models.py?ds=sidebyside diff --git a/apps/picture/models.py b/apps/picture/models.py index 8aa6f975c..862c172c2 100644 --- a/apps/picture/models.py +++ b/apps/picture/models.py @@ -9,7 +9,6 @@ from django.template.loader import render_to_string from django.core.cache import cache from catalogue.utils import split_tags from django.utils.safestring import mark_safe -from librarian import dcparser from slughifi import slughifi from django.utils.translation import ugettext_lazy as _ @@ -168,6 +167,8 @@ class Picture(models.Model): @property def info(self): if not hasattr(self, '_info'): + from librarian import dcparser + from librarian import picture info = dcparser.parse(self.xml_file.path, picture.PictureInfo) self._info = info return self._info