Monday, September 5, 2011

forms.ChoiceField/forms.ModelChoiceField Needs a Lot of Love

I don't know if anyone has said this outright, but I think that
ChoiceField and ModelChoiceField are just broken.

It seems that every time I want to do something with them I'm having
to write a custom init function get what I want done.

As a community I think we should be able to improve the "genericness"
of them in such a way that would allow smart filtering of model lists,
default settings, and a few other features that as an object they are
wonting for.

I know that this remark is far too generic and requires a great deal
more "fleshing out" but I wanted to throw that out there as I'm
banging my head -- once again -- on the desk trying to get django
forms to spit out a choice field that does what I want it to do and
wished to share my frustration.

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate