http://code.djangoproject.com/wiki/CookBookNewFormsFieldOrdering

On May 21, 2008, at 8:15 AM, omat wrote:
[...]
> My form class is like that:
>
> class NoteForm(forms.ModelForm):
>    is_location = forms.BooleanField(required=False)
>
>    class Meta:
>        model = Note
>
> I wish this checkbox to appear just before the location field which is
> specified in my model. But it appears as the last field when I display
> the form.
>
[...]
> Is there a way to specify the field order in ModelForm with extra
> fields?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to