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 sqlmodel import SQLModel
|
||||
from datetime import datetime
|
||||
from pydantic import ConfigDict
|
||||
|
||||
class UserCreate(SQLModel):
|
||||
email: str
|
||||
|
|
@ -195,11 +196,12 @@ class GroupPostRead(GroupPostBase):
|
|||
nicknames: List["PerformanceNicknameRead"] = []
|
||||
|
||||
class ShowRead(ShowBase):
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
id: int
|
||||
slug: Optional[str] = None
|
||||
vertical: Optional["VerticalSimple"] = None
|
||||
venue: Optional["VenueRead"] = None
|
||||
tour: Optional["TourRead"] = None
|
||||
vertical: Optional[VerticalSimple] = None
|
||||
venue: Optional[VenueRead] = None
|
||||
tour: Optional[TourRead] = None
|
||||
tags: List["TagRead"] = []
|
||||
performances: List["PerformanceRead"] = []
|
||||
notes: Optional[str] = None
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue