Re: ModelForm and fields ordering

2007-12-17 Thread Vitaliy
Thanks Malcolm But I have one little difference between form and model - only one new field that needs to be on top of all other fields example: #model class SomeModel(modles.Model): field1 field2 ... field20 #form class SomeModelForm(forms.ModelForm): some_new_field c

Re: ModelForm and fields ordering

2007-12-17 Thread Malcolm Tredinnick
On Mon, 2007-12-17 at 05:13 -0800, Vitaliy wrote: > How can I change fields order in form generated using ModelForm ? I think you're approach the problem from the wrong angle. ModelForm is a shortcut for converting a model directly to a form. If you want to alter a lot of things, such as the ord

ModelForm and fields ordering

2007-12-17 Thread Vitaliy
How can I change fields order in form generated using ModelForm ? --~--~-~--~~~---~--~~ 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 unsubscrib