Make entry kinds a teeny bit easier to manage by moving some of the smarts into the actual kinds.Entry class

This commit is contained in:
Danielle McLean 2017-10-26 09:01:36 +11:00
parent dc99e7a39b
commit f39782346f
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
3 changed files with 38 additions and 21 deletions

View file

@ -7,7 +7,7 @@ from meta.models import ModelMeta
from users.models import Profile
from . import kinds
ENTRY_KINDS = [(k.id, k.__name__) for k in kinds.all]
ENTRY_KINDS = [(k.id, k.id) for k in kinds.all]
class Entry(ModelMeta, models.Model):