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:
Danielle McLean 2017-10-28 14:01:31 +11:00
parent 1f6a587329
commit 5987e54105
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
3 changed files with 7 additions and 15 deletions

View file

@ -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',