This fixes a bug that was introduced in 28ff6fb1 [1] for the browsable API, specifically with how it handled default values for boolean fields. Previously, it had a global default for boolean fields set to `False`, which was different than the standard None that was used elsewhere. Because this only needed to be done for the browsable API, a fix was put into place that only set the default to `False` when form data was passed into the serializer. This had the unintended side effect of overriding any default set on the boolean field. This fixes #1101 [2] by only overriding the default if the default is `None`, which is the default for all fields. [1]: https://github.com/tomchristie/django-rest-framework/commit/28ff6fb1ec02b7a04c4a0db54885f3735b6dd43f [2]: https://github.com/tomchristie/django-rest-framework/issues/1101
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| authtoken | Loading commit data... | |
| runtests | Loading commit data... | |
| static/rest_framework | Loading commit data... | |
| templates/rest_framework | Loading commit data... | |
| templatetags | Loading commit data... | |
| tests | Loading commit data... | |
| utils | Loading commit data... | |
| __init__.py | Loading commit data... | |
| authentication.py | Loading commit data... | |
| compat.py | Loading commit data... | |
| decorators.py | Loading commit data... | |
| exceptions.py | Loading commit data... | |
| fields.py | Loading commit data... | |
| filters.py | Loading commit data... | |
| generics.py | Loading commit data... | |
| mixins.py | Loading commit data... | |
| models.py | Loading commit data... | |
| negotiation.py | Loading commit data... | |
| pagination.py | Loading commit data... | |
| parsers.py | Loading commit data... | |
| permissions.py | Loading commit data... | |
| relations.py | Loading commit data... | |
| renderers.py | Loading commit data... | |
| request.py | Loading commit data... | |
| response.py | Loading commit data... | |
| reverse.py | Loading commit data... | |
| routers.py | Loading commit data... | |
| serializers.py | Loading commit data... | |
| settings.py | Loading commit data... | |
| six.py | Loading commit data... | |
| status.py | Loading commit data... | |
| test.py | Loading commit data... | |
| throttling.py | Loading commit data... | |
| urlpatterns.py | Loading commit data... | |
| urls.py | Loading commit data... | |
| views.py | Loading commit data... | |
| viewsets.py | Loading commit data... |