♻️ Improve ohmyapi-only imports in apps
This commit is contained in:
parent
970117a474
commit
82fe75b0c7
5 changed files with 6 additions and 5 deletions
|
|
@ -1,3 +1,2 @@
|
||||||
from tortoise import fields as field
|
from .model import Model, field
|
||||||
from .model import Model
|
|
||||||
|
|
||||||
|
|
|
||||||
2
src/ohmyapi/db/exceptions.py
Normal file
2
src/ohmyapi/db/exceptions.py
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
from tortoise.exceptions import *
|
||||||
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
from .model import Model, fields
|
from .model import Model, field
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
from tortoise import fields
|
from tortoise import fields as field
|
||||||
from tortoise.models import Model as TortoiseModel
|
from tortoise.models import Model as TortoiseModel
|
||||||
from tortoise.contrib.pydantic import pydantic_model_creator, pydantic_queryset_creator
|
from tortoise.contrib.pydantic import pydantic_model_creator, pydantic_queryset_creator
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
from fastapi import APIRouter, Depends
|
from fastapi import APIRouter, Depends, HTTPException
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue