Commits

uber...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed 382a89a

0.91-bugfixes: Backport [3785] from Django trunk

  • Participants
  • Parent commits 7173de8
  • Branches 0.91-bugfixes

Comments (0)

Files changed (1)

File django/core/formfields.py

             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):