Skip to content

Commit 6e530c1

Browse files
committed
Fixed mismatching 'less than' operators.
Should be 'lt' instead of 'le' to match Django: https://docs.djangoproject.com/en/1.4/ref/models/querysets/#lt
1 parent 7882afd commit 6e530c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqlalchemy_django_query.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ class DjangoQueryMixin(object):
3838
"""
3939
_underscore_operators = {
4040
'gt': operators.gt,
41-
'lte': operators.lt,
41+
'lt': operators.lt,
4242
'gte': operators.ge,
43-
'le': operators.le,
43+
'lte': operators.le,
4444
'contains': operators.contains_op,
4545
'in': operators.in_op,
4646
'exact': operators.eq,

0 commit comments

Comments
 (0)