|
|
|
|
@ -121,7 +121,7 @@ class ProspectAdmin(SyncedObjectAdmin): |
|
|
|
|
'fields': ['related_activities', 'id', 'entity_names', 'first_name', 'last_name', 'email', 'phone', 'contact_again', 'official_user', 'name_unsure', 'entities', 'related_user'] |
|
|
|
|
}), |
|
|
|
|
] |
|
|
|
|
list_display = ('first_name', 'last_name', 'entity_names', 'last_update_date', 'current_status', 'current_text', 'contact_again') |
|
|
|
|
list_display = ('first_name', 'last_name', 'entity_names', 'phone', 'last_update_date', 'current_status', 'contact_again') |
|
|
|
|
|
|
|
|
|
list_filter = (ContactAgainFilter, ProspectStatusFilter, ProspectDeclineReasonFilter, ProspectGroupFilter, PhoneFilter, 'creation_date', StaffUserFilter, 'source', ProspectProfileFilter) |
|
|
|
|
search_fields = ('first_name', 'last_name', 'email', 'phone') |
|
|
|
|
@ -435,10 +435,10 @@ class ProspectGroupAdmin(SyncedObjectAdmin): |
|
|
|
|
|
|
|
|
|
@admin.register(Activity) |
|
|
|
|
class ActivityAdmin(SyncedObjectAdmin): |
|
|
|
|
raw_id_fields = ['prospects'] |
|
|
|
|
list_display = ('prospect_names', 'last_update', 'status', 'type', 'description', 'attachment_text', ) |
|
|
|
|
list_filter = ('status', 'type') |
|
|
|
|
search_fields = ('description',) |
|
|
|
|
filter_horizontal = ('prospects',) |
|
|
|
|
search_fields = ('attachment_text',) |
|
|
|
|
date_hierarchy = 'last_update' |
|
|
|
|
|
|
|
|
|
def get_form(self, request, obj=None, **kwargs): |
|
|
|
|
|