Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
FoAM
open sauces
Commits
cb938ae7
Commit
cb938ae7
authored
Jan 27, 2015
by
Francesca Sargent
Browse files
Increased minimum fields for editing Recipe Steps
parent
5a012c2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
flask/app/main/views.py
flask/app/main/views.py
+1
-1
No files found.
flask/app/main/views.py
View file @
cb938ae7
...
...
@@ -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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment