Skip to content

Commit a4f8c02

Browse files
author
Ryan P Kilby
committed
Fix code formatting for MethodFilter rework
1 parent 90165a0 commit a4f8c02

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ filter method.
200200
When filtering across relationships, the queryset and lookup value will be different.
201201
For example:
202202

203+
.. code-block:: python
204+
203205
class PostFilter(filters.FilterSet):
204206
author = filters.RelatedFilter('AuthorFilter')
205207
is_published = filters.MethodFilter()
@@ -231,6 +233,8 @@ For example:
231233
232234
And given these API calls:
233235

236+
.. code-block:: http
237+
234238
/api/posts/?is_published=true
235239
236240
/api/authors/?posts__is_published=true

0 commit comments

Comments
 (0)