Re: clean_* methods should be passed the value

2007-08-06 Thread Gary Wilson
SmileyChris wrote: > I know this would be backwards incompatible, but why on earth do our > newform clean_[fieldname] methods need to get the value out of the > self.cleaned_data dict. It just seems so un-DRY. This irritates me too. I'm +1 for passing the value, as noted by my patch attached to

Re: clean_* methods should be passed the value

2007-08-06 Thread Nick
On Aug 7, 6:45 am, SmileyChris <[EMAIL PROTECTED]> wrote: > I know this would be backwards incompatible, but why on earth do our > newform clean_[fieldname] methods need to get the value out of the > self.cleaned_data dict. It just seems so un-DRY. > > If there is an edge case where you need to lo

clean_* methods should be passed the value

2007-08-06 Thread SmileyChris
I know this would be backwards incompatible, but why on earth do our newform clean_[fieldname] methods need to get the value out of the self.cleaned_data dict. It just seems so un-DRY. If there is an edge case where you need to look at the dict, you still could. But the normal case is that you ar