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