On 1/3/07, Honza Král <[EMAIL PROTECTED]> wrote:
I do agree that the magic would be bad - but the current state IS
confusing, would it be possible to simply
 a) hide clean_data until validation has been done
 b) throw some exception when accessing uninitialized clean_data

This is a good idea -- I agree it would help avoid confusion. In
changeset [4284], I've changed the Form class so that Form.clean_data
only exists if a Form is valid. Otherwise, you'll get an
AttributeError if you try to access it. Thanks for the suggestion!

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com

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

Reply via email to