mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 18:13:57 +03:00
Legacy parameter order
This commit is contained in:
parent
42a8fe8995
commit
4c85829cb7
|
@ -216,7 +216,7 @@ For more details, see the [Django documentation][search-django-admin].
|
||||||
|
|
||||||
## OrderingFilter
|
## OrderingFilter
|
||||||
|
|
||||||
The `OrderingFilter` class supports simple query parameter controlled ordering of results. To specify the result order, set a query parameter named `'order'` to the required field name. For example:
|
The `OrderingFilter` class supports simple query parameter controlled ordering of results. To specify the result order, set a query parameter named `'ordering'` to the required field name. For example:
|
||||||
|
|
||||||
http://example.com/api/users?ordering=username
|
http://example.com/api/users?ordering=username
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user