Skip to content

Commit

Permalink
Updating docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
maraujop committed Sep 17, 2011
1 parent 2f57d6c commit faed513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/helpers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ We have defined a `common_layout` that is used as a base for two different layou
Updating layouts on the go
~~~~~~~~~~~~~~~~~~~~~~~~~~

Layouts can be changed, adapted and generated dynamically. At the moment, layout doesn't have an API for handling this, so as in Django forms you will need to access inner attribute `fields`, which is a Python list and play with it as you would do with `form.fields`. All layout objects hold also a `fields` list that you can tamper too. You can access the layout attached to a helper with::
Layouts can be changed, adapted and generated dynamically. At the moment, `Layout` doesn't have an API for handling this, so as in Django forms you will need to access inner attribute `fields`. Main difference compared to Django forms is that `fields` is a Python list and not a dictionary. To sum up all layout objects and `Layout` itself hold a `fields` list that you can tamper. You can access the layout attached to a helper with::

form.helper.layout

Expand Down

0 comments on commit faed513

Please sign in to comment.