diff --git a/docs/src/full_sqlalchemy.py b/docs/src/full_sqlalchemy.py index ef4a4859..6a97235c 100644 --- a/docs/src/full_sqlalchemy.py +++ b/docs/src/full_sqlalchemy.py @@ -3,10 +3,7 @@ import sqlalchemy from fastapi import FastAPI from fastapi_users import FastAPIUsers, models from fastapi_users.authentication import JWTAuthentication -from fastapi_users.db import ( - SQLAlchemyBaseUserTable, - SQLAlchemyUserDatabase, -) +from fastapi_users.db import SQLAlchemyBaseUserTable, SQLAlchemyUserDatabase from sqlalchemy.ext.declarative import DeclarativeMeta, declarative_base DATABASE_URL = "sqlite:///./test.db" diff --git a/docs/src/full_tortoise.py b/docs/src/full_tortoise.py index 9b8f2952..72121786 100644 --- a/docs/src/full_tortoise.py +++ b/docs/src/full_tortoise.py @@ -1,10 +1,7 @@ from fastapi import FastAPI from fastapi_users import FastAPIUsers, models from fastapi_users.authentication import JWTAuthentication -from fastapi_users.db import ( - TortoiseBaseUserModel, - TortoiseUserDatabase, -) +from fastapi_users.db import TortoiseBaseUserModel, TortoiseUserDatabase from tortoise.contrib.starlette import register_tortoise DATABASE_URL = "sqlite://./test.db"