Commit cb938ae7 authored by Francesca Sargent 's avatar Francesca Sargent
Browse files

Increased minimum fields for editing Recipe Steps

parent 5a012c2e
......@@ -400,7 +400,7 @@ def editrecipe(id):
class F(RecipeEditForm):
name = StringField('Recipe Name', validators=[Required(), Length(0, 64)])
description = PageDownField('Recipe Description')
steps = FieldList(FormField(RecipeStepForm), min_entries=recipe.steps.count())
steps = FieldList(FormField(RecipeStepForm), min_entries=(recipe.steps.count())+1)
cuisines = SplitStringField(validators=[Required()])
methods = SplitStringField(validators=[Required()])
submit = SubmitField('Submit')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment