Tweaked PersonAdmin to show name_from_draft after the name field.
- Legacy-Id: 15502
This commit is contained in:
parent
437418ed36
commit
9b7c18d994
|
@ -27,6 +27,8 @@ class PersonAdmin(simple_history.admin.SimpleHistoryAdmin):
|
|||
prefix, first, middle, last, suffix = name_parts(obj.name)
|
||||
return "%s %s" % (first, last)
|
||||
list_display = ["name", "short", "plain_name", "time", "user", ]
|
||||
fields = ("user", "time", "name", "name_from_draft", "ascii", "ascii_short", "biography", "photo", "photo_thumb", "consent",)
|
||||
readonly_fields = ("name_from_draft", )
|
||||
search_fields = ["name", "ascii"]
|
||||
raw_id_fields = ["user"]
|
||||
inlines = [ EmailInline, AliasInline, ]
|
||||
|
|
Loading…
Reference in a new issue