aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide
diff options
context:
space:
mode:
authorTom Christie2015-01-08 11:07:47 +0000
committerTom Christie2015-01-08 11:07:47 +0000
commite61ef3d39f301bc62323b47af5080877e273c395 (patch)
tree23d27008bd0d54db289c3d7cf0c20c33eb3aded9 /docs/api-guide
parent271b638df10c0cf498cbc69847f388e978c4da78 (diff)
downloaddjango-rest-framework-e61ef3d39f301bc62323b47af5080877e273c395.tar.bz2
Minor docs updates
Diffstat (limited to 'docs/api-guide')
-rw-r--r--docs/api-guide/filtering.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/api-guide/filtering.md b/docs/api-guide/filtering.md
index 83977048..3eb1538f 100644
--- a/docs/api-guide/filtering.md
+++ b/docs/api-guide/filtering.md
@@ -316,6 +316,7 @@ Typically you'd instead control this by setting `order_by` on the initial querys
queryset = User.objects.all()
serializer_class = UserSerializer
filter_backends = (filters.OrderingFilter,)
+ ordering_fields = ('username', 'email')
ordering = ('username',)
The `ordering` attribute may be either a string or a list/tuple of strings.