django使用数据库ORM时的优化点
先放两个model方便说明from django.db import modelsfrom django.contrib.auth.models import AbstractUser, UnicodeUsernameValidatorclass User(AbstractUser): username_validator = UnicodeUsernameValidator...