Django-rest-framework-braces

Latest version: v0.3.4

Safety actively analyzes 619494 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.3.4

~~~~~~~~~~~~~~~~~~

* Added ``EnforceValidationFieldMixin.capture_failed_field``, ``FormSerializerFieldMixin.capture_failed_field``,
and ``FormSerializerBase.capture_failed_fields`` to capture the optional fields that failed.

0.3.3

~~~~~~~~~~~~~~~~~~

* Fixing invalid data being copied over in ``FormSerializer`` when fail mode is not ``fail``

0.3.2

~~~~~~~~~~~~~~~~~~

* Fixing ``DoubleAsStrJsonEncoder`` by subclassing from DRF which supports datetimes, etc

0.3.1

~~~~~~~~~~~~~~~~~~

* Fixing ``SwappingSerializerMixin`` by supporting ``ListSerializer``

0.3.0

~~~~~~~~~~~~~~~~~~

* Added ``SwappingSerializerMixin``.
Allows to declaratively swap fields any field instances in child serializers.
* Added ``DoubleAsStrJsonEncoder`` for handicapped API clients.

0.2.3

~~~~~~~~~~~~~~~~~~

* Fixed how choices are normalized in ``SerializerForm`` to ``[(key, key)]``
vs previously ``[(key, value)]`` to match DRF's handling of choices unlike Django forms.
* Added support for ``Form.all_fields`` and ``Form.all_base_fields``
in ``SerializerForm`` which supports custom form classes which implement such API.
* Added support for ``FormSerializer.Meta.exclude`` which allows to specify fields to exclude.

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.