On Wed, Dec 9, 2009 at 9:16 PM, Kenneth McDonald < [email protected]> wrote:
> In the following bit of code: > > > > from django import forms > > class BuySellForm(forms.Form): > symbol = forms.CharField() > shares = forms.CharField() > price = forms.CharField() > print "DATA" > > def clean_shares(self): > print "DATA KEYS", self.data.keys() > > > the BuySellForm constructor is being called and everything happens > correctly in the browser, but the 'clean_shares' function is not being > called. Could someone please point out my newbie error? According to > the Django Apress book, starting the name of the function with > 'clean_' should be enough to ensure it is called. > And the code to create and validate the form is...? That might help in figuring out what is wrong. Karen -- You received this message because you are subscribed to the Google Groups "Django users" 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-users?hl=en.

