Commit 52df0d50 authored by Alex Gaynor's avatar Alex Gaynor
Browse files

Switched to use a more idiomatic construct.

parent 29132ebd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1655,7 +1655,7 @@ class Query(object):
        except MultiJoin:
            raise FieldError("Invalid field name: '%s'" % name)
        except FieldError:
            if name.find(LOOKUP_SEP) != -1:
            if LOOKUP_SEP in name:
                # For lookups spanning over relationships, show the error
                # from the model on which the lookup failed.
                raise