Display list confirmation in teacher list

This commit is contained in:
Gabriel Augendre 2018-06-23 11:25:26 +02:00
parent 0717581d14
commit d4820e8b75

View file

@ -14,7 +14,7 @@ class TeacherResource(resources.ModelResource):
@admin.register(Teacher) @admin.register(Teacher)
class TeacherAdmin(ExportMixin, admin.ModelAdmin): class TeacherAdmin(ExportMixin, admin.ModelAdmin):
resource_class = TeacherResource resource_class = TeacherResource
list_display = ['full_name', 'email', 'phone_number'] list_display = ['full_name', 'email', 'phone_number', 'has_confirmed_list']
def send_link(self, request, queryset): def send_link(self, request, queryset):
for teacher in queryset: for teacher in queryset: