MultiWidget subclass not calling compress

2007-02-21 Thread Justin Findlay
I have a simple MultiValueField and MultiWidget (that I modified from this example http://groups.google.com/group/django-users/browse_thread/thread/9b64e524dcf9d279/1e1144d1d7d69bb9). from django import newforms as forms class ContactWidget(forms.MultiWidget): def __init__(self,attrs=None,c

Re: newforms: MultiValueField and MultiWidget

2007-02-19 Thread Justin Findlay
On Feb 19, 1:18 pm, "Justin Findlay" <[EMAIL PROTECTED]> wrote: > Canen, do you have the time to work out a full example? After much > trying I'm still not able to repeat the example without having to use > the double tuple values. Nevermind. I misunderstood what

Re: newforms: MultiValueField and MultiWidget

2007-02-19 Thread Justin Findlay
On Jan 25, 1:16 pm, "canen" <[EMAIL PROTECTED]> wrote: > Answering my own question: > > The widget can be declared as part of the field, e.g. > > # Field > class MoneyField(MultiValueField): > def __init__(self, currency=(), amount=(), required=True, > widget=None, label=None, initial=None): >