use format_path for sites with folderdepth of 4

This commit is contained in:
j 2013-02-25 20:54:47 +00:00
parent 483e742439
commit 2f68365d2f

View file

@ -164,7 +164,7 @@ class File(models.Model):
def normalize_path(self): def normalize_path(self):
#FIXME: always use format_path #FIXME: always use format_path
if settings.USE_IMDB: if settings.CONFIG['site']['folderdepth'] == 4:
return ox.movie.format_path(self.get_path_info()) return ox.movie.format_path(self.get_path_info())
else: else:
path = self.path or '' path = self.path or ''