Fix teacher send action

This commit is contained in:
Gabriel Augendre 2018-05-22 11:10:27 +02:00
parent 4abc66d675
commit 35d7056c17

View file

@ -16,7 +16,7 @@ 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']
def send_link(modeladmin, request, queryset): def send_link(self, request, queryset):
for teacher in queryset: for teacher in queryset:
teacher.send_link(request) teacher.send_link(request)