Add step-level configuration whether an ingredients table should be shown. User-level default added to settings

This commit is contained in:
srwareham
2023-07-09 17:16:04 -07:00
parent 413da01c5c
commit 6785033a21
32 changed files with 87 additions and 38 deletions

View File

@ -50,7 +50,7 @@ class Cookmate(Integration):
for step in recipe_text.getchildren():
if step.text:
step = Step.objects.create(
instruction=step.text.strip(), space=self.request.space,
instruction=step.text.strip(), space=self.request.space, show_ingredients_table=self.request.user.userpreference.show_step_ingredients,
)
recipe.steps.add(step)