feat: keep original text on ingredient parse (#1102)

* Keep Original Text on Ingredient Parse
* Reorder migration and update test
This commit is contained in:
Miroito
2022-03-29 18:07:01 +02:00
committed by GitHub
parent 5e44d1c238
commit 6f309d7a89
7 changed files with 33 additions and 2 deletions

View File

@@ -54,6 +54,7 @@ class RecipeIngredient(MealieModel):
food: Optional[Union[IngredientFood, CreateIngredientFood]]
disable_amount: bool = True
quantity: float = 1
original_text: Optional[str]
# Ref is used as a way to distinguish between an individual ingredient on the frontend
# It is required for the reorder and section titles to function properly because of how