display doodlename in the admin interface

Fixes issue #14
This commit is contained in:
Martin Pépin 2019-03-16 18:37:45 +01:00
parent e15bde964f
commit 7368f317ad

View file

@ -31,6 +31,7 @@ def ProfileInfo(field, short_description, boolean=False):
return getter
User.profile_doodlename = ProfileInfo("doodlename", "Nom pour le doodle")
User.profile_phone = ProfileInfo("phone", "Telephone")
User.profile_instru = ProfileInfo("instru", "Instrument joué")
User.profile_is_ern = ProfileInfo("is_ernesto", "Ernestophoniste")
@ -51,6 +52,7 @@ class UserProfileAdmin(UserAdmin):
"first_name",
"last_name",
"email",
"profile_doodlename",
"profile_phone",
"profile_instru",
"profile_is_ern",