On Mon, 2007-09-17 at 19:11 +1000, Malcolm Tredinnick wrote:
> On Mon, 2007-09-17 at 10:14 +0200, Christopher Lenz wrote:
[...]
> > Um, yes they are erased:
> > 
> >    <http://code.djangoproject.com/browser/django/trunk/django/ 
> > newforms/forms.py#L205>
> > 
> > Am I missing something?
> 
> My mistake. Apologies.
> 
> That might be something to look into fixing.
> 
> I still not keen on the idea of being able to disable validation, since
> it's the driving feature behind clean() (which is my problem with the
> design, as opposed to the implementation issues). I want to think about
> this some more.

So I thought this some more and I think I'm comfortable being +0 to +1
on removing the erasure of cleaned_data if there are any errors. So
cleaned_data would contain anything that survived validation.

I'm -1 on adding like a do_not_validate option to full_clean(). If you
want to clean a form, pass in a form with the correct constraints set up
in the first place and don't ask Django to ignore the constraints you
have set. It's not a workaround; it's consistent design.

Regards,
Malcolm

-- 
The only substitute for good manners is fast reflexes. 
http://www.pointy-stick.com/blog/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to