Skip to content

Commit 9b7c18d

Browse files
committed
Tweaked PersonAdmin to show name_from_draft after the name field.
- Legacy-Id: 15502
1 parent 437418e commit 9b7c18d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ietf/person/admin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ def plain_name(self, obj):
2727
prefix, first, middle, last, suffix = name_parts(obj.name)
2828
return "%s %s" % (first, last)
2929
list_display = ["name", "short", "plain_name", "time", "user", ]
30+
fields = ("user", "time", "name", "name_from_draft", "ascii", "ascii_short", "biography", "photo", "photo_thumb", "consent",)
31+
readonly_fields = ("name_from_draft", )
3032
search_fields = ["name", "ascii"]
3133
raw_id_fields = ["user"]
3234
inlines = [ EmailInline, AliasInline, ]

0 commit comments

Comments
 (0)