#5986: Easy way to customize ordering of fields on forms that use inheritance
-------------------------------------+-------------------------------------
     Reporter:  emes                 |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Forms                |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:  field order weight   |             Triage Stage:  Accepted
  form newforms                      |      Needs documentation:  0
    Has patch:  1                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by carljm):

 Hmm, I always thought that relying on ordering of `clean_<field_name>`
 calls was unsupported; a `clean_<field_name>` method should only deal with
 its field and nothing else, if you need to validate multiple fields it
 should be done in `clean`.

 I think that in most cases forms are better rendered explicitly in the
 template, and that's where field-ordering belongs. But there are use cases
 (more generic applications such as the admin) where that's not practical.
 The fact that we reorder form fields ourselves in Django is a pretty
 strong argument that there should be a public API for it.

--
Ticket URL: <https://code.djangoproject.com/ticket/5986#comment:30>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/062.535d7835d085efe46216f0f7e3a4626b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to