This commit is contained in:
Martin
2016-06-30 17:31:58 +02:00
parent 032b417e1d
commit 77634ae303
15 changed files with 41 additions and 23 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ class Category(db.Model):
if not row:
raise Exception(
'Could not find a path for category: {}, locale: {}'.format(self.id, locale))
path = row.path.split('/', 1)[-1] # get all text after the first /
path = row.path.split('/', 1)[-1] # get all text after the first /
path = slugify(path)
return path