Re: unable to access another field in cleaned_data from clean_

2008-12-30 Thread hotani
Thanks Karen - I think that got it. At least it's looking better than it has been. Apparently the missing field from 'cleaned_data' was caused by the wonky way I had it set up before. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: unable to access another field in cleaned_data from clean_

2008-12-30 Thread Karen Tracey
On Tue, Dec 30, 2008 at 2:21 PM, hotani wrote: > > -- Update -- > > If I make the clean method for 'county', it works. I guess county > comes after case_no so both are accessible by that time. Weird, but I > can deal with it. However, that brings me to the 2nd issue with this > process: Whatever

Re: unable to access another field in cleaned_data from clean_

2008-12-30 Thread hotani
-- Update -- If I make the clean method for 'county', it works. I guess county comes after case_no so both are accessible by that time. Weird, but I can deal with it. However, that brings me to the 2nd issue with this process: Whatever is accessed in the clean method is no longer accessible for w

unable to access another field in cleaned_data from clean_

2008-12-30 Thread hotani
I have 2 fields I'm working with in a custom clean method: - case_no - county the clean method is for case_no, so I have this: -- def clean_case_no(self): d = self.cleaned_data form_case_no = d['case_no'] form_county = d['county'] ... -- The form fails with KeyError on 'county'. How else