mirror of
https://github.com/fastapi-admin/fastapi-admin.git
synced 2025-08-26 02:39:01 +08:00
Rename fastapi_admin.models.User
to fastapi_admin.models.AbstractUser
.
This commit is contained in:
@ -5,4 +5,4 @@ def version():
|
||||
# with open("pyproject.toml") as f:
|
||||
# ret = re.findall(r'version = "(\d+\.\d+\.\d+)"', f.read())
|
||||
# return ret[0]
|
||||
return "0.2.8"
|
||||
return "0.2.9"
|
||||
|
@ -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")
|
||||
|
||||
|
Reference in New Issue
Block a user