Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter by lambda #66

Merged
merged 2 commits into from
Jun 8, 2019
Merged

Filter by lambda #66

merged 2 commits into from
Jun 8, 2019

Conversation

linkyndy
Copy link
Owner

@linkyndy linkyndy commented Jun 8, 2019

Allows using lambdas when filtering models:

class Artist(Model):
    pass

Artist.filter(lambda a: a['genre'] == 'hiphop')

Closes #28

@linkyndy linkyndy merged commit 6a9b6f3 into master Jun 8, 2019
@linkyndy linkyndy deleted the filter-by-lambda branch June 8, 2019 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Filter by function
1 participant