diff options
| author | Tom Christie | 2013-12-23 09:48:59 +0000 | 
|---|---|---|
| committer | Tom Christie | 2013-12-23 09:48:59 +0000 | 
| commit | 52686420f4bf866064ee88a15903665f14289394 (patch) | |
| tree | 41ea7b0d4863092f996f63de14e678a1c74a7a3a /rest_framework/fields.py | |
| parent | 9c41c007afc71c899306bcb02e40bdfc36b09146 (diff) | |
| parent | 83b31e7ea298a8948e9a76c9b971845ea0052b3c (diff) | |
| download | django-rest-framework-52686420f4bf866064ee88a15903665f14289394.tar.bz2 | |
Merge branch 'bennbollay-patch-1' into 2.4.0
Conflicts:
	.travis.yml
	docs/api-guide/routers.md
	rest_framework/compat.py
	tox.ini
Diffstat (limited to 'rest_framework/fields.py')
| -rw-r--r-- | rest_framework/fields.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/rest_framework/fields.py b/rest_framework/fields.py index 65edd0d6..5ee75235 100644 --- a/rest_framework/fields.py +++ b/rest_framework/fields.py @@ -423,7 +423,7 @@ class BooleanField(WritableField):      def field_from_native(self, data, files, field_name, into):          # HTML checkboxes do not explicitly represent unchecked as `False`          # we deal with that here... -        if isinstance(data, QueryDict): +        if isinstance(data, QueryDict) and self.default is None:              self.default = False          return super(BooleanField, self).field_from_native( | 
