ckarli

Results 4 comments of ckarli

You can use [OpenApiSerializerFieldExtension ](https://drf-spectacular.readthedocs.io/en/latest/drf_spectacular.html?highlight=map_serializer_field#drf_spectacular.extensions.OpenApiSerializerFieldExtension ) ``` from drf_extra_fields.relations import PresentablePrimaryKeyRelatedField from drf_spectacular.extensions import OpenApiSerializerFieldExtension from drf_spectacular.settings import spectacular_settings class PresentablePrimaryKeyRelatedFieldSchemaExtension(OpenApiSerializerFieldExtension): target_class = PresentablePrimaryKeyRelatedField def map_serializer_field(self, auto_schema, direction): if direction...

> While we are waiting for the update, you can try this method. What do you think? > > ```python > from rest_framework.validators import UniqueTogetherValidator > from rest_framework.exceptions import ValidationError...

> I'm using Django and django-extensions. I started getting reloads on every request. After doing some checks I was able to find that it started happening after upgrading werkzeug from...