Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #1336 -- USStateField no longer throws exception when data is None

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4422 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 81c839014d85161e851cc8c1d408055adcd94021 1 parent 1b0b3fe
@adrianholovaty adrianholovaty authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 django/oldforms/__init__.py
View
4 django/oldforms/__init__.py
@@ -958,7 +958,9 @@ def isValidUSState(self, field_data, all_data):
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):
Please sign in to comment.
Something went wrong with that request. Please try again.