fix: explicit serialization config for ShowRead
Some checks failed
Deploy Fediversion / deploy (push) Failing after 0s
Some checks failed
Deploy Fediversion / deploy (push) Failing after 0s
This commit is contained in:
parent
9e28fc168a
commit
bfcc94a67f
1 changed files with 5 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
from typing import Optional, List, Dict, Generic, TypeVar
|
from typing import Optional, List, Dict, Generic, TypeVar
|
||||||
from sqlmodel import SQLModel
|
from sqlmodel import SQLModel
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
from pydantic import ConfigDict
|
||||||
|
|
||||||
class UserCreate(SQLModel):
|
class UserCreate(SQLModel):
|
||||||
email: str
|
email: str
|
||||||
|
|
@ -195,11 +196,12 @@ class GroupPostRead(GroupPostBase):
|
||||||
nicknames: List["PerformanceNicknameRead"] = []
|
nicknames: List["PerformanceNicknameRead"] = []
|
||||||
|
|
||||||
class ShowRead(ShowBase):
|
class ShowRead(ShowBase):
|
||||||
|
model_config = ConfigDict(from_attributes=True)
|
||||||
id: int
|
id: int
|
||||||
slug: Optional[str] = None
|
slug: Optional[str] = None
|
||||||
vertical: Optional["VerticalSimple"] = None
|
vertical: Optional[VerticalSimple] = None
|
||||||
venue: Optional["VenueRead"] = None
|
venue: Optional[VenueRead] = None
|
||||||
tour: Optional["TourRead"] = None
|
tour: Optional[TourRead] = None
|
||||||
tags: List["TagRead"] = []
|
tags: List["TagRead"] = []
|
||||||
performances: List["PerformanceRead"] = []
|
performances: List["PerformanceRead"] = []
|
||||||
notes: Optional[str] = None
|
notes: Optional[str] = None
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue