Author: adrian
Date: 2007-01-24 18:43:44 -0600 (Wed, 24 Jan 2007)
New Revision: 4422
Modified:
django/trunk/django/oldforms/__init__.py
Log:
Fixed #1336 -- USStateField no longer throws exception when data is None
Modified: django/trunk/django/oldforms/__init__.py
===================================================================
--- django/trunk/django/oldforms/__init__.py 2007-01-24 20:11:54 UTC (rev
4421)
+++ django/trunk/django/oldforms/__init__.py 2007-01-25 00:43:44 UTC (rev
4422)
@@ -958,7 +958,9 @@
raise validators.CriticalValidationError, e.messages
def html2python(data):
- return data.upper() # Should always be stored in upper case
+ if data:
+ return data.upper() # Should always be stored in upper case
+ return data
html2python = staticmethod(html2python)
class CommaSeparatedIntegerField(TextField):
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---