Rename fastapi_admin.models.User to fastapi_admin.models.AbstractUser.

This commit is contained in:
long2ice
2020-07-02 11:46:12 +08:00
parent 4ea2c4bbab
commit 09525d363a
6 changed files with 12 additions and 8 deletions

View File

@ -3,7 +3,7 @@ from tortoise import Model, fields
from fastapi_admin import enums
class User(Model):
class AbstractUser(Model):
username = fields.CharField(max_length=20, unique=True)
password = fields.CharField(max_length=200, description="Will auto hash with raw password")