mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-03 03:43:32 +03:00
Small documentation fix
This commit is contained in:
parent
8fffc346c1
commit
cc9c7cd8a4
|
@ -181,8 +181,6 @@ Which will allow you to make requests such as:
|
||||||
|
|
||||||
http://example.com/api/products?category=clothing&max_price=10.00
|
http://example.com/api/products?category=clothing&max_price=10.00
|
||||||
|
|
||||||
For more details on using filter sets see the [django-filter documentation][django-filter-docs].
|
|
||||||
|
|
||||||
You can also span relationships using `django-filter`, let's assume that each
|
You can also span relationships using `django-filter`, let's assume that each
|
||||||
product has foreign key to `Manufacturer` model, so we create filter that
|
product has foreign key to `Manufacturer` model, so we create filter that
|
||||||
filters using `Manufacturer` name. For example:
|
filters using `Manufacturer` name. For example:
|
||||||
|
@ -220,6 +218,8 @@ be undesired, but you can use:
|
||||||
And now you can execute:
|
And now you can execute:
|
||||||
|
|
||||||
http://example.com/api/products?manufacturer=foo
|
http://example.com/api/products?manufacturer=foo
|
||||||
|
|
||||||
|
For more details on using filter sets see the [django-filter documentation][django-filter-docs].
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user