@@ -42,9 +42,9 @@ Features
4242Requirements
4343------------
4444
45- * Python 2.7 or 3.3+
46- * Django 1.8, 1.9, 1.10
47- * Django REST framework 3.4 , 3.5
45+ * ** Python **: 2.7 or 3.3+
46+ * ** Django **: 1.8, 1.9, 1.10, 1.11
47+ * ** DRF **: 3.5 , 3.6
4848
4949
5050Installation
@@ -135,7 +135,7 @@ You can easily traverse multiple relationships when filtering by using ``Related
135135
136136Example filter calls:
137137
138- .. code- block:: http
138+ .. code- block::
139139
140140 / api/ companies? department__name=Accounting
141141 / api/ companies? department__manager__name__startswith=Bob
@@ -212,7 +212,7 @@ to all filter classes. It incorporates some of the implementation details of the
212212
213213The above would enable the following filter calls:
214214
215- .. code- block:: http
215+ .. code- block::
216216
217217 / api/ posts? is_published=true
218218 / api/ authors? posts__is_published=true
@@ -229,23 +229,23 @@ Automatic Filter Negation/Exclusion
229229FilterSets support automatic exclusion using a simple `` param!= value`` syntax. This syntax
230230internally sets the `` exclude`` property on the filter .
231231
232- .. code- block:: http
232+ .. code- block::
233233
234234 / api/ page? title!= The% 20Park
235235
236236This syntax supports regular filtering combined with exclusion filtering. For example, the
237237following would search for all articles containing " Hello" in the title, while excluding
238238those containing " World" .
239239
240- .. code- block:: http
240+ .. code- block::
241241
242242 / api/ articles? title__contains=Hello& title__contains!= World
243243
244244Note that most filters only accept a single query parameter. In the above, `` title__contains``
245245and `` title__contains!`` are interpreted as two separate query parameters. The following would
246246probably be invalid, although it depends on the specifics of the individual filter class :
247247
248- .. code- block:: http
248+ .. code- block::
249249
250250 / api/ articles? title__contains=Hello& title__contains!= World& title_contains!= Friend
251251
0 commit comments