fixed deprecated model attribute on exporters
This commit is contained in:
parent
b7e6e7b1b0
commit
56f3fe2d12
@ -77,7 +77,6 @@ class RecipeSage(Integration):
|
|||||||
}
|
}
|
||||||
|
|
||||||
for s in recipe.steps.all():
|
for s in recipe.steps.all():
|
||||||
if s.type != Step.TIME:
|
|
||||||
data['recipeInstructions'].append({
|
data['recipeInstructions'].append({
|
||||||
'@type': 'HowToStep',
|
'@type': 'HowToStep',
|
||||||
'text': s.instruction
|
'text': s.instruction
|
||||||
|
@ -71,7 +71,6 @@ class Saffron(Integration):
|
|||||||
recipeInstructions = []
|
recipeInstructions = []
|
||||||
recipeIngredient = []
|
recipeIngredient = []
|
||||||
for s in recipe.steps.all():
|
for s in recipe.steps.all():
|
||||||
if s.type != Step.TIME:
|
|
||||||
recipeInstructions.append(s.instruction)
|
recipeInstructions.append(s.instruction)
|
||||||
|
|
||||||
for i in s.ingredients.all():
|
for i in s.ingredients.all():
|
||||||
|
Loading…
Reference in New Issue
Block a user