Merge branch 'mealie-next' into fix/bump-sqlalchemy

This commit is contained in:
boc-the-git
2024-03-06 09:51:24 +11:00
committed by GitHub
57 changed files with 500 additions and 327 deletions

View File

@@ -101,7 +101,7 @@ class ShoppingListItemOut(ShoppingListItemBase):
update_at: datetime | None = None
@model_validator(mode="after")
def post_validate(self):
def populate_missing_label(self):
# if we're missing a label, but the food has a label, use that as the label
if (not self.label) and (self.food and self.food.label):
self.label = self.food.label