summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Scheibenpflug <zorchenhimer@gmail.com>2015-06-20 22:31:18 (GMT)
committerNick Scheibenpflug <zorchenhimer@gmail.com>2015-06-20 22:31:18 (GMT)
commit2792438faf0519514ba96fc9f9461c53cabe4635 (patch)
treecbde53010a738cdd8f9e8cd21377836bde5f2ab6
parentff566b3a8c0aa7228c5d9343ee9ea7d2cdd8226c (diff)
downloadmanga-reader-2792438faf0519514ba96fc9f9461c53cabe4635.zip
manga-reader-2792438faf0519514ba96fc9f9461c53cabe4635.tar.gz
Make the directory property use the system name instead of the full name.
-rw-r--r--file_management/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/file_management/models.py b/file_management/models.py
index a4848ff..241ae2d 100644
--- a/file_management/models.py
+++ b/file_management/models.py
@@ -46,7 +46,7 @@ class Manga(models.Model):
46 46
47 @property 47 @property
48 def directory(self): 48 def directory(self):
49 return path.join(self.full_name[:1], self.full_name[1:2], self.full_name) 49 return path.join(self.system_name[:1], self.system_name[1:2], self.full_name)
50 50
51class Chapter(models.Model): 51class Chapter(models.Model):
52 # Chapter number. Decimal because I'v seen a bunch of 'x.5' filler chapters. 52 # Chapter number. Decimal because I'v seen a bunch of 'x.5' filler chapters.