Simplify entry routing by using one route with an optional slug for permalinks, rather than a route with a slug and a route without
This commit is contained in:
parent
1f6a587329
commit
5987e54105
3 changed files with 7 additions and 15 deletions
|
|
@ -13,10 +13,6 @@ class Entry:
|
|||
def entry(self):
|
||||
return self.plural + '_entry'
|
||||
|
||||
@property
|
||||
def entry_slug(self):
|
||||
return self.entry + '_slug'
|
||||
|
||||
|
||||
Note = Entry(
|
||||
id='note',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue