mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-24 10:34:03 +03:00
e888fc11c7
* Make `NullBooleanField` subclass `BooleanField` This removes a lot of the redundancy that was in place becuase we were not doing this. This maintains the `None` initial value that was previously present, as well as disallowing `allow_null` to be passed in. * Remove special case for mapping `NullBooleanField` In newer versions of Django, the `NullBooleanField` is handled the same way as a `BooleanField(null=True)`. Given that we also support that combination, and that our own `NullBooleanField` behaves in the same manner, it makes sense to remove the special casing that exists for it. * Add test for BooleanField(null=True, choices) * Remove special case for NullBooleanField * Adjust mapping tests for NullBooleanField * Fixed linting error * Raise deprecation warning when NullBooleanField is used * Fix linting issue in imports |
||
---|---|---|
.. | ||
__init__.py | ||
breadcrumbs.py | ||
encoders.py | ||
field_mapping.py | ||
formatting.py | ||
html.py | ||
humanize_datetime.py | ||
json.py | ||
mediatypes.py | ||
model_meta.py | ||
representation.py | ||
serializer_helpers.py | ||
urls.py |