Skip to content

Commit

Permalink
Merge pull request #52 from kdwyer/combined-form-docs-fix
Browse files Browse the repository at this point in the history
Code in docs does not produce specified data.
  • Loading branch information
kvesteri authored Aug 21, 2017
2 parents 203bb2d + be1b2c2 commit af92015
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Notice how we are initalizing the form using :meth:`from_json` class method::


from wtforms import Form
from wtforms.fields import BooleanField, TextField
from wtforms.fields import BooleanField, FormField, TextField


class LocationForm(Form):
Expand All @@ -53,6 +53,7 @@ Notice how we are initalizing the form using :meth:`from_json` class method::
class EventForm(Form):
name = TextField()
is_public = BooleanField()
location = FormField(LocationForm)


json = {
Expand Down

0 comments on commit af92015

Please sign in to comment.