From 26f4f15caed93a1826d0e6d43cc121ccad16d486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torstein=20Aarseth=20B=C3=B8?= Date: Fri, 28 Aug 2020 11:24:13 +0200 Subject: [PATCH] Removed custom api for serializer. --- rest_framework/schemas/openapi.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/rest_framework/schemas/openapi.py b/rest_framework/schemas/openapi.py index b3ec39ac1..58284c3f0 100644 --- a/rest_framework/schemas/openapi.py +++ b/rest_framework/schemas/openapi.py @@ -512,11 +512,6 @@ class AutoSchema(ViewInspector): required = [] properties = {} - try: - return serializer.get_object_openapi_schema(autoschema=self) - except AttributeError: - pass - component_name = self.get_component_name(serializer) components = {}