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:
parent
dc99e7a39b
commit
f39782346f
3 changed files with 38 additions and 21 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue