From 71c7a04ee8921c01babb11fbe2938397a372dac7 Mon Sep 17 00:00:00 2001 From: Mike Moore Date: Tue, 3 Sep 2024 15:00:17 -0600 Subject: [PATCH] Fix for incorrect `issubclass()` check. --- drf_spectacular/contrib/djangorestframework_camel_case.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drf_spectacular/contrib/djangorestframework_camel_case.py b/drf_spectacular/contrib/djangorestframework_camel_case.py index 941eb033..e37d7a86 100644 --- a/drf_spectacular/contrib/djangorestframework_camel_case.py +++ b/drf_spectacular/contrib/djangorestframework_camel_case.py @@ -22,7 +22,7 @@ def has_middleware_installed(): for middleware in [import_string(m) for m in settings.MIDDLEWARE]: try: - if issubclass(CamelCaseMiddleWare, middleware): + if issubclass(middleware, CamelCaseMiddleWare): return True except TypeError: pass