Skip to content

Commit

Permalink
Merge pull request #662 from ad-m/patch-1
Browse files Browse the repository at this point in the history
Add info about FormHelper import
  • Loading branch information
Carlton Gibson committed Dec 5, 2016
2 parents 10cc42d + c7658a4 commit 92864e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/form_helper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ FormHelper with a form attached (Default layout)

Since version 1.2.0 ``FormHelper`` optionally can be passed an instance of a form. You would do it this way::

from crispy_forms.helper import FormHelper

class ExampleForm(forms.Form):
def __init__(self, *args, **kwargs):
super(ExampleForm, self).__init__(*args, **kwargs)
Expand Down

0 comments on commit 92864e0

Please sign in to comment.