Skip to content

Commit dead04d

Browse files
author
Jonatas Baldin
committed
Correct lookup parameter on django-filter is lookup_expr
1 parent 2929d08 commit dead04d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/filtering.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ create your own ``Filterset`` as follows:
114114
115115
class AnimalFilter(django_filters.FilterSet):
116116
# Do case-insensitive lookups on 'name'
117-
name = django_filters.CharFilter(lookup_type='iexact')
117+
name = django_filters.CharFilter(lookup_expr=['iexact'])
118118
119119
class Meta:
120120
model = Animal

0 commit comments

Comments
 (0)