From d468a6ec76c0a3ddbb2427e26ea5de1c453b76cb Mon Sep 17 00:00:00 2001 From: Victor de Jager Date: Fri, 24 Nov 2017 14:55:17 +0100 Subject: [PATCH] switched thed comparisson logic --- rest_framework/schemas/inspectors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/schemas/inspectors.py b/rest_framework/schemas/inspectors.py index 7f3f27458..c139db910 100644 --- a/rest_framework/schemas/inspectors.py +++ b/rest_framework/schemas/inspectors.py @@ -187,7 +187,7 @@ class AutoSchema(ViewInspector): for f in self._manual_fields: try: - if f.method in method: + if method in f.method: by_name[f.name] = f except AttributeError: by_name[f.name] = f