#5986: [PATCH] Custom field order in newforms
------------------------------------------------+---------------------------
Reporter: emes | Owner: nobody
Status: new | Component:
django.newforms
Version: SVN | Resolution:
Keywords: field order weight form newforms | Stage:
Unreviewed
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
------------------------------------------------+---------------------------
Comment (by Michał Sałaban <[EMAIL PROTECTED]>):
Replying to [comment:5 jkocherhans]:
> I'm sorry to be blunt, but I couldn't be more against this change, or
rather the weight=X syntax. I'm working on a new class called
{{{ModelForm}}} right now (search django-dev for the relevant thread) that
should allow something similar to the {{{fields_order}}} attribute above.
It's just called {{{fields}}} and it will actually restrict the fields
that occur in the form as well.
The ''weight'' syntax is obsolete. Please, see the latest patch and
example.
I found the discussion about !ModelForms but don't see if they deal with
the order of fields. And how can they be used to create Forms which are
not Model-based?
Anyway, I see no problem in coexistence of !ModelForms and
''Meta.fields_order'' above.
--
Ticket URL: <http://code.djangoproject.com/ticket/5986#comment:7>
Django Code <http://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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---