|
|
|
|
@ -430,11 +430,11 @@ class ProspectGroupAdmin(SyncedObjectAdmin): |
|
|
|
|
|
|
|
|
|
@admin.register(Activity) |
|
|
|
|
class ActivityAdmin(SyncedObjectAdmin): |
|
|
|
|
list_display = ('prospect_names', 'creation_date', 'status', 'type', 'description', 'attachment_text', ) |
|
|
|
|
list_display = ('prospect_names', 'last_update', 'status', 'type', 'description', 'attachment_text', ) |
|
|
|
|
list_filter = ('status', 'type') |
|
|
|
|
search_fields = ('description',) |
|
|
|
|
filter_horizontal = ('prospects',) |
|
|
|
|
date_hierarchy = 'creation_date' |
|
|
|
|
date_hierarchy = 'last_update' |
|
|
|
|
|
|
|
|
|
def get_form(self, request, obj=None, **kwargs): |
|
|
|
|
form = super().get_form(request, obj, **kwargs) |
|
|
|
|
|