Skip to content

Commit 43e2e74

Browse files
authored
Merge pull request #61 from arkavidia-hmif/MainEvent
Fullname on Main Event Registrant Admin Panel
2 parents 1b4e932 + 504d2b6 commit 43e2e74

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

arkav/mainevent/admin.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ class RegistrantAdmin(admin.ModelAdmin, ExportCsvMixin):
191191
),
192192
)
193193
actions = [send_reminder, 'send_custom_email', 'migrate_checkinevent', 'set_participating', 'export_as_csv']
194-
list_display = ['id', 'mainevent', 'user', 'phone_number', 'active_stage',
194+
list_display = ['id', 'mainevent', 'full_name', 'user', 'phone_number', 'active_stage',
195195
'has_completed_active_stage', 'is_participating', 'created_at']
196196
list_display_links = ['id', 'user']
197197
list_filter = ['is_participating', HasCompletedActiveStageFilter, 'mainevent', 'active_stage']
@@ -207,6 +207,10 @@ def phone_number(self, instance):
207207
return instance.user.phone_number
208208
phone_number.short_description = 'Phone Number'
209209

210+
def full_name(self, instance):
211+
return instance.user.full_name
212+
full_name.short_description = 'Full Name'
213+
210214
def get_fieldsets(self, request, obj=None):
211215
fieldsets = super(RegistrantAdmin, self).get_fieldsets(request, obj)
212216
newfieldsets = list(fieldsets)

0 commit comments

Comments
 (0)