diff --git a/backend/schemas.py b/backend/schemas.py index 58eb5f8..c60d6fc 100644 --- a/backend/schemas.py +++ b/backend/schemas.py @@ -59,7 +59,6 @@ class VenueCreate(VenueBase): pass class VenueRead(VenueBase): - model_config = ConfigDict(from_attributes=True) id: int slug: Optional[str] = None @@ -98,7 +97,6 @@ class SongUpdate(SQLModel): # --- Vertical Schema (simple for embedding) --- class VerticalSimple(SQLModel): - model_config = ConfigDict(from_attributes=True) id: int name: str slug: str @@ -203,7 +201,7 @@ class ShowRead(ShowBase): slug: Optional[str] = None vertical: Optional[VerticalSimple] = None venue: Optional[VenueRead] = None - tour: Optional["TourRead"] = None + tour: Optional[TourRead] = None tags: List["TagRead"] = [] performances: List["PerformanceRead"] = [] notes: Optional[str] = None @@ -228,7 +226,6 @@ class TourCreate(TourBase): pass class TourRead(TourBase): - model_config = ConfigDict(from_attributes=True) id: int slug: Optional[str] = None