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.
Thanks,
Ken
--
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.