|
|
|
|
@ -22,9 +22,9 @@ class MainDB_contributorsAdmin(ExportMixin, ImportMixin, admin.ModelAdmin):
|
|
|
|
|
|
|
|
|
|
list_display = ('full_name', 'actual', 'da_approval', 'leader', 'tage_anzeige', 'get_deparment', 'gender', 'birthday_year', 'get_congregation', 'mobilnumber', 'email')
|
|
|
|
|
|
|
|
|
|
list_filter = ('gender', 'roles', 'deparment', 'da_approval')
|
|
|
|
|
list_filter = ('gender', 'roles', 'deparment', 'da_approval', 'actual')
|
|
|
|
|
|
|
|
|
|
search_fields = ('name', 'firstname', 'congregation__title', 'deparment__title', 'mobilnumber', 'email')
|
|
|
|
|
search_fields = ('name', 'firstname', 'congregation__title', 'deparment__title', 'mobilnumber', 'email', 'jwpub')
|
|
|
|
|
|
|
|
|
|
def get_congregation(self, obj):
|
|
|
|
|
return obj.congregation
|
|
|
|
|
|