From 22da4772c8140d4b89eca350a1b0ed816034e564 Mon Sep 17 00:00:00 2001 From: Dhaval Mehta <20968146+dhaval-mehta@users.noreply.github.com> Date: Wed, 19 Feb 2020 22:20:32 +0530 Subject: [PATCH] change _get_tags to get_tags --- rest_framework/schemas/openapi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rest_framework/schemas/openapi.py b/rest_framework/schemas/openapi.py index ce7577683..6317dea24 100644 --- a/rest_framework/schemas/openapi.py +++ b/rest_framework/schemas/openapi.py @@ -105,7 +105,7 @@ class AutoSchema(ViewInspector): if request_body: operation['requestBody'] = request_body operation['responses'] = self._get_responses(path, method) - operation['tags'] = self._get_tags(path, method) + operation['tags'] = self.get_tags(path, method) return operation @@ -573,7 +573,7 @@ class AutoSchema(ViewInspector): } } - def _get_tags(self, path, method): + def get_tags(self, path, method): # If user have specified tags, use them. if self._tags: return self._tags