drf-extra-fields icon indicating copy to clipboard operation
drf-extra-fields copied to clipboard

Extra Fields for Django Rest Framework

Results 17 drf-extra-fields issues
Sort by recently updated
recently updated
newest added

## Feature Request: Allow [WebP](https://developers.google.com/speed/webp) format in Base64ImageField ## Current Behavior: When trying to upload a base64 encoded webp image the serializer throw a `ValidationError` with saying: "The type of...

When `drf-extra-fields` is installed with Poetry `Pillow` is not installed hence you cannot properly use `Base64ImageField`. https://github.com/Hipo/drf-extra-fields/blob/3dbb40b5b617926d8a3ab481f6e53cd84a9ff38b/drf_extra_fields/fields.py#L136-L140 Am I doing something wrong or `Pillow` should be listed in the `requirements.txt`?

Django does not require storages to implement the path property, for example some storages in [django-storages](https://github.com/jschneier/django-storages). This PR makes sure drf-extra-fields does not depend on the path property. This solves...

I would like to introduce 2 fields that I think can have a good impact on this repo 1. ConsciousChoiceField This field can be used in situations where we want...

enhancement

Hi! Thanks for this lib, It solved a lot of problems. But I realized that if I have the following field in my model: ```python class MyModel(models.Model): img = models.ImageField(null=True,...

DateRangeField - trying to send with a form data, but default serializer method to_internal_value already call the html.parse_html_dict, then the second time RangeField to_internal_value do the same thing, but data...

bug

I have a serializer field which works differently for read and write. I used PresentablePrimaryKeyRelatedField for that. e.g: car_type = PresentablePrimaryKeyRelatedField( queryset=CarType.objects.all(), presentation_serializer=CarTypeSerializer, read_source=None ) This works well when accessing...

* Applies `pyupgrade --py37-plus` * Removed `mock` from `requirements_dev.txt` (replaced by unittest.mock) * Simplify string formatting with a f-string

Hi I have added package of encrypted fields,