summaryrefslogtreecommitdiff
path: root/django/oldforms
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-01-25 02:15:39 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-01-25 02:15:39 +0000
commit75a3617d7941ca9484bccab09221dcc51762701a (patch)
tree8d0816562b29528f7d487b2a0ab461de70eebfab /django/oldforms
parent668671561dab5efa68f575997bf9d655174ee686 (diff)
newforms-admin: Merged to [4425]
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@4426 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/oldforms')
-rw-r--r--django/oldforms/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/django/oldforms/__init__.py b/django/oldforms/__init__.py
index b437109596..decf0f7064 100644
--- a/django/oldforms/__init__.py
+++ b/django/oldforms/__init__.py
@@ -958,7 +958,9 @@ class USStateField(TextField):
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):