#8164: Custom field order in ModelForms
-------------------------------+--------------------------------------------
Reporter: kire | Owner: Alex
Status: reopened | Milestone: 1.1
Component: Forms | Version: SVN
Resolution: | Keywords: modelform, field order
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------+--------------------------------------------
Changes (by anentropic):
* status: closed => reopened
* resolution: fixed =>
Comment:
This fix only seems to apply to ModelForms... surely we should be able to
do the same thing for regular forms too? If you want one form to inherit
off another?
Here's a hack I found on StackOverflow to achieve the neccessary order
with a regular form:
http://stackoverflow.com/questions/350799/how-does-django-know-the-order-
to-render-form-fields/1191310#1191310
--
Ticket URL: <http://code.djangoproject.com/ticket/8164#comment:17>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.