Tuesday, May 24, 2011

Re: MultiValueField and MultiWidget

On Mon, May 23, 2011 at 11:27 AM, CH <coupledloosely@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/

--
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.

No comments:

Post a Comment