CookBookNewFormsFieldOrdering. Handy tip—change the order of fields in a Django newforms instance by over-riding form.fields.keyOrder (since fields is a SortedDict).
CookBookNewFormsFieldOrdering. Handy tip—change the order of fields in a Django newforms instance by over-riding form.fields.keyOrder (since fields is a SortedDict).
Very, very useful that.
Uncanny. I started playing with the Django forms stuff (so cool!) only a couple of days ago, and needed this almost instantly. Thanks.
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 - #