mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 03:23:59 +03:00
87605e1e39
Previously, all validators set on a DecimalField in Django would be stripped when converted to a Django REST framework field. This was because any validator that was an instance of `DecimalValidator` would be removed, and when `DecimalValidator` wasn't supported (so it was `None`), all validators would be removed. This fixes the issue by only removing the `DecimalValidator` instances if the `DecimalValidator` is supported. |
||
---|---|---|
.. | ||
__init__.py | ||
breadcrumbs.py | ||
encoders.py | ||
field_mapping.py | ||
formatting.py | ||
html.py | ||
humanize_datetime.py | ||
mediatypes.py | ||
model_meta.py | ||
representation.py | ||
serializer_helpers.py | ||
urls.py |