Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

0.91-bugfixes: Backport [3785] from Django trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/0.91-bugfixes@6373 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d797b34bf806fd8e1525e3931dd2545355877886 1 parent 0417b0f
@ubernostrum ubernostrum authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 django/core/formfields.py
View
5 django/core/formfields.py
@@ -897,10 +897,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):
Please sign in to comment.
Something went wrong with that request. Please try again.