MultiValueField and MultiWidget

30 views
Skip to first unread message

CH

unread,
May 23, 2011, 11:27:05 AM5/23/11
to Django users
Django's documentation doesn't do a very thorough job of explaining
how to use MultiValueField and MultiWidget. I've tried dissecting the
one implementation [1] and haven't had good results. Would someone
mind giving me a quick pointer in the right direction?

My attempt is here: http://dpaste.com/hold/545609/
The resulting admin: http://i54.tinypic.com/4ihbo7.png

Copied to StackOverflow: http://stackoverflow.com/questions/6064121/django-multivaluefield-and-multiwidget

Anybody have a clue what's happening here? My guess is that there's
some unintended exception suppression happening, but I haven't been
able to locate the source.

Thanks!

Karen Tracey

unread,
May 24, 2011, 7:58:52 AM5/24/11
to django...@googlegroups.com
On Mon, May 23, 2011 at 11:27 AM, CH <coupled...@gmail.com> wrote:
Django's documentation doesn't do a very thorough job of explaining
how to use MultiValueField and MultiWidget. I've tried dissecting the
one implementation [1] and haven't had good results. Would someone
mind giving me a quick pointer in the right direction?

My attempt is here: http://dpaste.com/hold/545609/
The resulting admin: http://i54.tinypic.com/4ihbo7.png

You are mixing model and form fields in your model definition. Your model should only have model fields.

Karen
--
http://tracey.org/kmt/

Reply all
Reply to author
Forward
0 new messages