Skip to content

Commit

Permalink
Remove default=False from BooleanField, fixes encode#1004
Browse files Browse the repository at this point in the history
Note: The browsable API works fine, without the default being set.
  • Loading branch information
yprez committed Aug 19, 2013
1 parent 430f008 commit acbe52e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions rest_framework/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,11 +399,6 @@ class BooleanField(WritableField):
}
empty = False

# Note: we set default to `False` in order to fill in missing value not
# supplied by html form. TODO: Fix so that only html form input gets
# this behavior.
default = False

def from_native(self, value):
if value in ('true', 't', 'True', '1'):
return True
Expand Down

0 comments on commit acbe52e

Please sign in to comment.