mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-12-13 23:05:16 +01:00
Factorize automatic alias creation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user