Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #2685 -- Correctly process blank input for USStateField element…

…s. Thanks,

dackze+django@gmail.com.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@3785 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 8feee92045294e7d5baa0bd493b20ac5ddaa3385 1 parent b46a093
@malcolmt malcolmt authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 django/forms/__init__.py
View
5 django/forms/__init__.py
@@ -952,10 +952,7 @@ def isValidUSState(self, field_data, all_data):
raise validators.CriticalValidationError, e.messages
def html2python(data):
- if data:
- return data.upper() # Should always be stored in upper case
- else:
- return None
+ return data.upper() # Should always be stored in upper case
html2python = staticmethod(html2python)
class CommaSeparatedIntegerField(TextField):

0 comments on commit 8feee92

Please sign in to comment.
Something went wrong with that request. Please try again.