This commit is contained in:
j 2011-01-21 16:22:06 +05:30
parent 67630fa9ed
commit ae36baf8ae

View file

@ -736,7 +736,7 @@ class Item(models.Model):
def local_posters(self): def local_posters(self):
part = 1 part = 1
posters = {} posters = {}
self.poster_frame >= 0: if self.poster_frame >= 0:
frame = self.get_poster_frame_path() frame = self.get_poster_frame_path()
path = self.path('poster.pandora.%s.%s.jpg'%(part, self.poster_frame)) path = self.path('poster.pandora.%s.%s.jpg'%(part, self.poster_frame))
path = os.path.abspath(os.path.join(settings.MEDIA_ROOT, path)) path = os.path.abspath(os.path.join(settings.MEDIA_ROOT, path))