from django.contrib import admin from .models import User class UserAdmin(admin.ModelAdmin): empty_value_display = "空" list_display = ('id', 'username') admin.site.register(User,UserAdmin)