switched thed comparisson logic

This commit is contained in:
Victor de Jager 2017-11-24 14:55:17 +01:00
parent 8ab71401b1
commit d468a6ec76

View File

@ -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