diff options
| author | Tom Christie | 2012-11-16 17:28:08 +0000 |
|---|---|---|
| committer | Tom Christie | 2012-11-16 17:28:08 +0000 |
| commit | c5765641a44ad2fb3b80f63f9a47e0dd7f432c94 (patch) | |
| tree | 5c6fa85a1b36a6a163ca4d9458fbe13f35007b4f /docs/api-guide | |
| parent | 3b258d69c92e9d9293f7c5d1690f0ca434e677e3 (diff) | |
| download | django-rest-framework-c5765641a44ad2fb3b80f63f9a47e0dd7f432c94.tar.bz2 | |
Fix typo
Diffstat (limited to 'docs/api-guide')
| -rw-r--r-- | docs/api-guide/filtering.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api-guide/filtering.md b/docs/api-guide/filtering.md index 14ab9a26..95d9d526 100644 --- a/docs/api-guide/filtering.md +++ b/docs/api-guide/filtering.md @@ -71,7 +71,7 @@ We can override `.get_queryset()` to deal with URLs such as `http://example.com/ by filtering against a `username` query parameter in the URL. """ queryset = Purchase.objects.all() - username = self.request.QUERY_PARAMS.get('username', None): + username = self.request.QUERY_PARAMS.get('username', None) if username is not None: queryset = queryset.filter(purchaser__username=username) return queryset |
