在对应的apps下建立xadmin.py
from .models import EmailVerifyRecord
import xadmin
class EmailVerifyRecordAdmin(object):
list_display = ['code','email','send_type','send_time']//字段显示
search_fields = ['code','email','send_type']//搜索
xadmin.site.register(EmailVerifyRecord,EmailVerifyRecordAdmin)
05-11 22:39