yzk_wechat_event/apps/user/choices.py

10 lines
181 B
Python
Raw Permalink Normal View History

from django.db import models
class UserAccountTypeChoices(models.IntegerChoices):
"""
用户账号类型
"""
NORMAL = 1, '普通用户'
ADMIN = 2, '管理员'