minor color and layout changes in admin interface
This commit is contained in:
@@ -33,5 +33,5 @@ class NoteAdmin(admin.ModelAdmin):
|
||||
'fields': ['sujet', 'text']}),
|
||||
]
|
||||
|
||||
list_display = ['created_date', 'sujet', 'cast', 'text']
|
||||
list_display = ['created_date', 'sujet', 'type_name', 'text']
|
||||
list_filter = ('created_date', 'created_by')
|
||||
|
||||
@@ -145,6 +145,9 @@ class Note(models.Model):
|
||||
return
|
||||
|
||||
|
||||
@property
|
||||
def type_name(self):
|
||||
return self.child_class.__qualname__
|
||||
|
||||
@property
|
||||
def child_class(self):
|
||||
|
||||
Reference in New Issue
Block a user