Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix Query class to permit subclass creation #270
Creating a subclass of the Query class in order to implement custom queries currently fails because the getattr method creates a new instance of the Query class using a hard-coded name rather than the type of the current instance. This can easily be fixed by using
Creating a new subclass of Query is useful in order to simplify code scenarios where custom test functions are frequently used.
This pull request provides both a test and a fix for this problem.