On 11/3/07, crybaby <[EMAIL PROTECTED]> wrote: > > > Validation checks the number entered by the user is between the range > and this check is done in "def clean_guess_the_number". This is not > working. > > Seems like "def clean_guess_the_number(self)" never executed when you > post the data and when form.is_valid() called.
Seems like? How do you know it is not being called instead of its code is not doing what you expect? Try putting a print statement in it, I'll bet you'll see it is being called. For more enlightenment, set yourself up with a debugging environment that lets you set breakpoints and step through the code whilst showing you the values of variables, etc. If you are going to be doing anything beyond trivial bits of programming it is really worth the investment in time to learn how to debug. Karen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---