Factorize automatic alias creation
This commit is contained in:
parent
f865a6ac7c
commit
32a37eae29
2 changed files with 46 additions and 55 deletions
|
|
@ -28,7 +28,7 @@ class NoteAdmin(PolymorphicParentModelAdmin):
|
|||
list_filter = (PolymorphicChildModelFilter, 'is_active',)
|
||||
|
||||
# Use a polymorphic list
|
||||
list_display = ('__str__', 'balance', 'is_active')
|
||||
list_display = ('pretty', 'balance', 'is_active')
|
||||
polymorphic_list = True
|
||||
|
||||
# Organize notes by registration date
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue