Kaydet (Commit) 52df0d50 authored tarafından Alex Gaynor's avatar Alex Gaynor

Switched to use a more idiomatic construct.

üst 29132ebd
...@@ -1655,7 +1655,7 @@ class Query(object): ...@@ -1655,7 +1655,7 @@ class Query(object):
except MultiJoin: except MultiJoin:
raise FieldError("Invalid field name: '%s'" % name) raise FieldError("Invalid field name: '%s'" % name)
except FieldError: except FieldError:
if name.find(LOOKUP_SEP) != -1: if LOOKUP_SEP in name:
# For lookups spanning over relationships, show the error # For lookups spanning over relationships, show the error
# from the model on which the lookup failed. # from the model on which the lookup failed.
raise raise
......
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