Skip to content

Commit 903cebb

Browse files
committed
Re format code example
1 parent 9586846 commit 903cebb

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/filtering.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,14 @@ create your own ``FilterSet``. You can pass it directly as follows:
124124
# Do case-insensitive lookups on 'name'
125125
name = django_filters.CharFilter(lookup_expr=['iexact'])
126126
# Allow multiple genera to be selected at once
127-
genera = django_filters.MultipleChoiceFilter(field_name='genus',
128-
choices=(('Canis', 'Canis'),
129-
('Panthera', 'Panthera'),
130-
('Seahorse', 'Seahorse')))
127+
genera = django_filters.MultipleChoiceFilter(
128+
field_name='genus',
129+
choices=(
130+
('Canis', 'Canis'),
131+
('Panthera', 'Panthera'),
132+
('Seahorse', 'Seahorse')
133+
)
134+
)
131135
132136
class Meta:
133137
model = Animal

0 commit comments

Comments
 (0)