💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
>[success] # admin.py配置 ~~~ from django.contrib import admin from .models import Student # Register your models here. class StudentAdmin(admin.ModelAdmin): list_display = ('id', 'name', 'sex', 'profession', 'email', 'qq', 'phone', 'status', 'created_time') list_filter = ('sex', 'status', 'created_time') search_fields = ('name', 'profession') fieldsets = ( (None, { 'fields': ( 'name', ('sex', 'profession'), ('email', 'qq', 'phone'), 'status', ) }), ) admin.site.register(Student, StudentAdmin) ~~~