mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-06 05:20:12 +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:
|
for f in self._manual_fields:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if f.method in method:
|
if method in f.method:
|
||||||
by_name[f.name] = f
|
by_name[f.name] = f
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
by_name[f.name] = f
|
by_name[f.name] = f
|
||||||
|
|
Loading…
Reference in New Issue
Block a user