Skip to content

Commit

Permalink
Small docstring edit to change from [6745]
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6875 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Dec 4, 2007
1 parent b34b1a8 commit 31a1746
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/newforms/fields.py
Expand Up @@ -533,8 +533,8 @@ def clean(self, value):
"""Returns a Python boolean object."""
super(BooleanField, self).clean(value)
# Explicitly check for the string 'False', which is what a hidden field
# will submit for False (since bool("True") == True we don't need to
# handle that explicitly).
# will submit for False. Because bool("True") == True, we don't need to
# handle that explicitly.
if value == 'False':
return False
return bool(value)
Expand Down

0 comments on commit 31a1746

Please sign in to comment.