Commits

Luke Plant  committed 3976eea

Tweaked contacts admin

  • Participants
  • Parent commits a3c5f8f

Comments (0)

Files changed (1)

File contacts/admin.py

 class ContactAdmin(admin.ModelAdmin):
     def address(obj):
         return ', '.join(obj.address.strip().split('\n'))
-    list_display = ['name', address, 'post_code', 'phone_number', 'mobile_number', 'email']
+    list_display = ['name', address, 'post_code', 'phone_number', 'mobile_number', 'email', 'church_member', 'home_group']
+    list_filter = ['church_member', 'home_group']
 
     # We allow some church people to view admin screens.  Some data is kept
     # private from them, therefore we are careful about list_display,