Tuesday, September 20, 2011

Custom model field/form: __init__() got multiple values for keyword argument 'baz'

Hello,

The problematic code can be found here:

<https://gist.github.com/1229708>

TypeError:

__init__() got multiple values for keyword argument 'baz'

I have spent the last couple days trying to figure out how to pass a kwarg from model to fields/forms (and eventually to a widget).

TBTH, I have had a heck of a time finding a contemporary example of how to do this that fits the needs of my project. The docs are definitely detailed, and the Django source code is helpful, but I have yet to piece this puzzle together. :(

Any tips would be greatly appreciated.

Django (1, 4, 0, 'alpha', 0)

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/K-MmaLu9m_kJ.
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