From 7f0a4abb042faa3cf3003b68708306a10d4d5958 Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Sat, 28 Apr 2018 17:12:31 -0400 Subject: [PATCH] Add extra UserProfile info to admin screen --- events/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/events/admin.py b/events/admin.py index 481e81d..60224a1 100644 --- a/events/admin.py +++ b/events/admin.py @@ -46,7 +46,8 @@ admin.site.register(City, CityAdmin) class ProfileAdmin(admin.ModelAdmin): raw_id_fields = ('city',) - list_display = ('user', 'realname', 'avatar', 'web_url') + list_display = ('user', 'realname', 'city', 'web_url', 'send_notifications') + list_filter = ('send_notifications', 'user__last_login') admin.site.register(UserProfile, ProfileAdmin) class OrgAdmin(admin.ModelAdmin):