Fix: Allow Last Made to be Updated on Locked Recipes (#2140)

* allow certain props to be updated on locked recipe

* pytest

* added "last_made" to hardcoded datetime fields

* refactored last made to its own route

* codegen/types

* updated pytest
This commit is contained in:
Michael Genson
2023-02-21 21:59:22 -06:00
committed by GitHub
parent a6c46a7420
commit fd03d468d4
9 changed files with 88 additions and 5 deletions

View File

@@ -200,6 +200,10 @@ class Recipe(RecipeSummary):
return user_id
class RecipeLastMade(BaseModel):
timestamp: datetime.datetime
from mealie.schema.recipe.recipe_ingredient import RecipeIngredient # noqa: E402
RecipeSummary.update_forward_refs()