1. 在settings.py 中 AUTH_USER_MODEL 为重写的 user位置 2. 继承 from apps.vadmin.permission.models import UserProfile 写自己的用户模型 3. 需要注意,自己重写的用户模型不能有必填字段 |
||
|---|---|---|
| .. | ||
| permission | ||
| system | ||
| __init__.py | ||
1. 在settings.py 中 AUTH_USER_MODEL 为重写的 user位置 2. 继承 from apps.vadmin.permission.models import UserProfile 写自己的用户模型 3. 需要注意,自己重写的用户模型不能有必填字段 |
||
|---|---|---|
| .. | ||
| permission | ||
| system | ||
| __init__.py | ||