Skip to content

Commit

Permalink
Merge pull request #1283 from emmceemoore/patch-1
Browse files Browse the repository at this point in the history
Fix for incorrect `issubclass()` check.
  • Loading branch information
tfranzel authored Sep 4, 2024
2 parents f741899 + 71c7a04 commit 2b4d5ab
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 2b4d5ab

Please sign in to comment.