I find myself occassionally tripping over how field attributes are handled in newforms because it follows a Python convention of declaration, but doesn't assign them directly to the form instance.
>>> from django import newforms as forms >>> class XForm(forms.Form): ... xattr = '42' ... yattr = forms.BooleanField() ... >>> x = XForm({'yattr':True}) >>> x.xattr '42' >>> x.yattr Traceback (most recent call last): File "<stdin>", line 1, in ? AttributeError: 'XForm' object has no attribute 'yattr' >>> Why not have yattr assigned directly to the XForm instance, with a base_fields reference pointing to it? I suppose there is a reason. Just curious. -- Jeff Bauer Rubicon, Inc. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---