Skip to content

Commit 9cac83b

Browse files
authored
Merge pull request #243 from jonatasbaldin/jonatas/fix-filtering-documentation
Fix lookup parameter on filtering documentation
2 parents 6de94a7 + dead04d commit 9cac83b

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)