fixed more db model definitions

This commit is contained in:
Michael Genson 2024-02-19 15:47:14 +00:00
parent fbfc5b31d6
commit 3adb324b25

View File

@ -131,8 +131,8 @@ class ShoppingList(SqlAlchemyBase, BaseMixins):
collection_class=ordering_list("position"),
)
recipe_references: Mapped[ShoppingListRecipeReference] = orm.relationship(
ShoppingListRecipeReference, cascade="all, delete, delete-orphan"
recipe_references: Mapped[list[ShoppingListRecipeReference]] = orm.relationship(
ShoppingListRecipeReference, cascade="all, delete, delete-orphan", uselist=True
)
label_settings: Mapped[list["ShoppingListMultiPurposeLabel"]] = orm.relationship(
ShoppingListMultiPurposeLabel,