Задать вопрос

Тел: +7 965 3737 888

557

Просмотров

0

Ответов

Show users' full names for foreign keys in admin

This is a ModelAdmin base class you can use to make foreign key references to User a bit nicer in admin. In addition to showing a user's username, it also shows their full name too (if they have one and it differs from the username).

2009-08-14: updated to handle many to many fields and easily configure whether to always show the username (if it differs from full name)

Вопрос полезен? Да0/Нет0
file_4385.py(1.3Кб)
None