From 1bec444f66a8496445190fcf283efb0577bc7408 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 21 Oct 2011 11:53:39 +0200 Subject: [PATCH] always update sort_path --- pandora/archive/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 1b951b5b..81318f5b 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -75,7 +75,6 @@ class File(models.Model): def set_state(self): self.path = self.create_path() - self.sort_path= utils.sort_string(self.path) if not os.path.splitext(self.path)[-1] in ( '.srt', '.rar', '.sub', '.idx', '.txt', '.jpg', '.png', '.nfo') \ @@ -146,6 +145,7 @@ class File(models.Model): def save(self, *args, **kwargs): if self.auto: self.set_state() + self.sort_path= utils.sort_string(self.path) if self.is_subtitle: self.available = self.data and True or False else: