fix-#744: Querying by a field defined in a subclass raises InvalidQueryError
Merge pull request #774 from DavidBord/fix-744

fix-#744: Querying by a field defined in a subclass raises InvalidQueryE...