Make members searchable in admin

This commit is contained in:
Yingtong Li 2019-03-17 23:23:47 +11:00
parent 80c585111a
commit 954348192b
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -18,4 +18,7 @@ from django.contrib import admin
from . import models from . import models
admin.site.register(models.Member) class MemberAdmin(admin.ModelAdmin):
search_fields = ['email', 'first_name', 'last_name', 'student_id']
admin.site.register(models.Member, MemberAdmin)