Commit 518bb44a by hurturk

Remove excessive class instance while getting http_method_names

parent 6075f805
......@@ -247,7 +247,7 @@ class EndpointInspector(object):
"""
if hasattr(callback, 'actions'):
actions = set(callback.actions.keys())
http_method_names = set(callback.cls().http_method_names)
http_method_names = set(callback.cls.http_method_names)
return [method.upper() for method in actions & http_method_names]
return [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment