1
0
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:
Alexandre Iooss
2019-07-24 22:03:07 +02:00
parent f865a6ac7c
commit 32a37eae29
2 changed files with 46 additions and 55 deletions

View File

@@ -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