#5986: Custom form field order
-------------------------------------+-------------------------------------
Reporter: emes | Owner: nobody
Type: New feature | Status: new
Component: Forms | Version: master
Severity: Normal | Resolution:
Keywords: field order weight | Triage Stage:
form newforms | Unreviewed
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by collinanderson):
* stage: Design decision needed => Unreviewed
* type: Uncategorized => New feature
Comment:
I haven't tried this myself, but would a syntax like this work?
{{{
class UserProfileForm(UserForm):
first_name = forms.CharField(max_length=30, weight=-1)
last_name = forms.CharField(max_length=30, weight=-1)
username = UserForm.base_fields['username']
password = UserForm.base_fields['password']
password2 = UserForm.base_fields['password2']
jabber_id = forms.EmailField()
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/5986#comment:24>
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.959cd750ad109149e8a1120376e183b3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.