Skip to content

Commit

Permalink
Fullname
Browse files Browse the repository at this point in the history
  • Loading branch information
ravielze committed Feb 20, 2021
1 parent fe20f63 commit 504d2b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion arkav/mainevent/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class RegistrantAdmin(admin.ModelAdmin, ExportCsvMixin):
),
)
actions = [send_reminder, 'send_custom_email', 'migrate_checkinevent', 'set_participating', 'export_as_csv']
list_display = ['id', 'mainevent', 'user', 'phone_number', 'active_stage',
list_display = ['id', 'mainevent', 'full_name', 'user', 'phone_number', 'active_stage',
'has_completed_active_stage', 'is_participating', 'created_at']
list_display_links = ['id', 'user']
list_filter = ['is_participating', HasCompletedActiveStageFilter, 'mainevent', 'active_stage']
Expand All @@ -207,6 +207,10 @@ def phone_number(self, instance):
return instance.user.phone_number
phone_number.short_description = 'Phone Number'

def full_name(self, instance):
return instance.user.full_name
full_name.short_description = 'Full Name'

def get_fieldsets(self, request, obj=None):
fieldsets = super(RegistrantAdmin, self).get_fieldsets(request, obj)
newfieldsets = list(fieldsets)
Expand Down

0 comments on commit 504d2b6

Please sign in to comment.