forked from 0x2620/pandora
format_path return value changed
This commit is contained in:
parent
69af82bd9f
commit
38af33bb2f
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ class File(models.Model):
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def normalize_path(self):
|
def normalize_path(self):
|
||||||
return u'/'.join(ox.movie.format_path(self.get_path_info()).split('/')[1:])
|
return u'/'.join(ox.movie.format_path(self.get_path_info()))
|
||||||
|
|
||||||
def save(self, *args, **kwargs):
|
def save(self, *args, **kwargs):
|
||||||
if self.id and not self.path_info and self.instances.count():
|
if self.id and not self.path_info and self.instances.count():
|
||||||
|
|
Loading…
Reference in a new issue