From a96bcf50bc7b7c3d185199ccb577e06af2bc917a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristi=20V=C3=AEjdea?= Date: Sat, 16 Jun 2018 16:28:33 +0300 Subject: [PATCH] Do not call add_manual_fields twice --- src/drf_yasg/inspectors/field.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/drf_yasg/inspectors/field.py b/src/drf_yasg/inspectors/field.py index 026bc246..d1ea24fa 100644 --- a/src/drf_yasg/inspectors/field.py +++ b/src/drf_yasg/inspectors/field.py @@ -36,10 +36,7 @@ def add_manual_fields(self, serializer, schema): setattr(schema, attr, val) def get_schema(self, serializer): - result = self.probe_field_inspectors(serializer, openapi.Schema, self.use_definitions) - schema = openapi.resolve_ref(result, self.components) - self.add_manual_fields(serializer, schema) - return result + return self.probe_field_inspectors(serializer, openapi.Schema, self.use_definitions) def add_manual_parameters(self, serializer, parameters): """Add/replace parameters from the given list of automatically generated request parameters. This method