Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

CookBookNewFormsFieldOrdering. Handy tip—change the order of fields in a Django newforms instance by over-riding form.fields.keyOrder (since fields is a SortedDict).

Tagged , , ,

3 comments

  1. Very, very useful that.

    David Reynolds - 27th June 2008 09:16 - #

  2. Uncanny. I started playing with the Django forms stuff (so cool!) only a couple of days ago, and needed this almost instantly. Thanks.

    Tom Insam - 27th June 2008 09:19 - #

  3. Great, i wish i had seen that one a bit earlier. Is there also a way to define the grouping of the fields?

    eelco - 27th June 2008 18:55 - #

Comments are closed.
A django site