From d7ff0fd306041461ff3f98d3709113f333756e5b Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 22 Dec 2011 13:51:53 +0100 Subject: [PATCH] import fix --- apps/picture/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.20.1