Trying printing out self.clean_data when using the built-in django
server and you'll see what it looks like. Your fields might be empty
strings instead of None, so you should say:

if self.clean_data.get("city")

instead of making comparisons to None (which is discouraged in Python,
you should use: if foo is None, rather than: if foo == None).


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to