feat(accounts): 实现用户资料与认证页面
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
from django.contrib import admin
|
||||
|
||||
from .models import UserProfile
|
||||
|
||||
|
||||
@admin.register(UserProfile)
|
||||
class UserProfileAdmin(admin.ModelAdmin):
|
||||
"""管理员维护用户基础资料。"""
|
||||
|
||||
list_display = ("user", "display_name", "timezone", "updated_at")
|
||||
search_fields = ("user__username", "display_name")
|
||||
Reference in New Issue
Block a user