From: Radek Czajka Date: Thu, 22 Dec 2011 12:51:53 +0000 (+0100) Subject: import fix X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/d7ff0fd306041461ff3f98d3709113f333756e5b?ds=sidebyside;hp=-c import fix --- d7ff0fd306041461ff3f98d3709113f333756e5b 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