mirror of
https://github.com/a-mayb3/Kanban_clone_backend.git
synced 2026-03-21 18:15:37 +01:00
Made ProjectUser return full project info
This commit is contained in:
parent
ac21fceffc
commit
839728cf66
1 changed files with 3 additions and 2 deletions
|
|
@ -1,10 +1,11 @@
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
from pydantic import ConfigDict
|
from pydantic import ConfigDict
|
||||||
from schemas.projects import ProjectBase
|
from schemas.projects import ProjectFull
|
||||||
from schemas.users import UserBase
|
from schemas.users import UserBase
|
||||||
|
|
||||||
class ProjectUserBase(UserBase):
|
class ProjectUserBase(UserBase):
|
||||||
model_config = ConfigDict(from_attributes=True)
|
model_config = ConfigDict(from_attributes=True)
|
||||||
|
|
||||||
projects: List[ProjectBase]
|
projects: List[ProjectFull]
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue