Skip to content

Commit

Permalink
Fix for incorrect issubclass() check.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmceemoore authored Sep 3, 2024
1 parent f741899 commit 71c7a04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drf_spectacular/contrib/djangorestframework_camel_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 71c7a04

Please sign in to comment.