Skip to content

Commit

Permalink
Fix NullBooleanField setting issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
GrAndSE committed Jun 26, 2012
1 parent bc1820e commit e238b10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lighty/db/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def __set__(self, instance, value):
from ..utils import string_types
if value is None:
value = None
if isinstance(value, string_types):
elif isinstance(value, string_types):
value = value == 'True' or value == 'true' or value == 'TRUE'
elif not isinstance(value, bool):
value = bool(value)
Expand Down

0 comments on commit e238b10

Please sign in to comment.