mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-03 20:10:10 +03:00
switched thed comparisson logic
This commit is contained in:
parent
8ab71401b1
commit
d468a6ec76
|
@ -187,7 +187,7 @@ class AutoSchema(ViewInspector):
|
|||
for f in self._manual_fields:
|
||||
|
||||
try:
|
||||
if f.method in method:
|
||||
if method in f.method:
|
||||
by_name[f.name] = f
|
||||
except AttributeError:
|
||||
by_name[f.name] = f
|
||||
|
|
Loading…
Reference in New Issue
Block a user