Skip to content

Commit

Permalink
Add a better default value for the operator argument
Browse files Browse the repository at this point in the history
  • Loading branch information
juliotrigo committed May 25, 2017
1 parent 03470d8 commit 323b5ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlalchemy_filters/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Operator(object):
'not_in': lambda f, a: ~f.in_(a),
}

def __init__(self, operator='=='):
def __init__(self, operator=None):
if not operator:
operator = '=='

Expand Down

0 comments on commit 323b5ba

Please sign in to comment.