diff --git a/sqlalchemy_mixins/smartquery.py b/sqlalchemy_mixins/smartquery.py index 2eed78f..188085e 100644 --- a/sqlalchemy_mixins/smartquery.py +++ b/sqlalchemy_mixins/smartquery.py @@ -157,6 +157,7 @@ class SmartQueryMixin(InspectionMixin, EagerLoadMixin): 'istartswith': lambda c, v: c.ilike(v + '%'), 'endswith': operators.endswith_op, 'iendswith': lambda c, v: c.ilike('%' + v), + 'contains': lambda c, v: c.ilike(f'%{v}%'), 'year': lambda c, v: extract('year', c) == v, 'month': lambda c, v: extract('month', c) == v,