#19393: Form fields ordered incorrectly when introducing addition fields
-----------------------------+------------------------
     Reporter:  dloewenherz  |      Owner:  nobody
         Type:  Bug          |     Status:  new
    Component:  Forms        |    Version:  1.5-beta-1
     Severity:  Normal       |   Keywords:
 Triage Stage:  Unreviewed   |  Has patch:  0
Easy pickings:  0            |      UI/UX:  0
-----------------------------+------------------------
 I have a ModelForm based on a User class with `fields = ('first_name',
 'last_name', 'email', 'password')`. My `RegistrationForm` looks like this:

 {{{

 class RegistrationForm(forms.ModelForm):
     email = forms.CharField(help_text="Used for logging in and account
 notifications")
     email_confirmation = forms.CharField(label="Verify Email")
     password = forms.CharField(widget=forms.PasswordInput)
     password_confirmation = forms.CharField(label="Verify Password",
 widget=forms.PasswordInput)

     class Meta():
         model = User
         fields = ('first_name', 'last_name', 'email', 'password')
 }}}

 I would expect the fields to appear in this order:

 * first_name
 * last_name
 * email
 * email_confirmation
 * password
 * password_confirmation

 But instead they appear in this order

 * first_name
 * last_name
 * email
 * password
 * email_confirmation
 * password_confirmation

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19393>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to