diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py index f99f555625..2a54f2010f 100644 --- a/django/db/models/fields/__init__.py +++ b/django/db/models/fields/__init__.py @@ -364,8 +364,8 @@ class BooleanField(Field): def to_python(self, value): if value in (True, False): return value - if value is 't': return True - if value is 'f': return False + if value is 't' or value is 'True': return True + if value is 'f' or value is 'False': return False raise validators.ValidationError, gettext("This value must be either True or False.") def get_manipulator_field_objs(self):