diff options
| author | Tom Christie | 2015-03-20 14:46:06 +0000 | 
|---|---|---|
| committer | Tom Christie | 2015-03-20 14:46:06 +0000 | 
| commit | 22569e8202ae746d5c6211c3095aeddd2ed91904 (patch) | |
| tree | d2b4e7cd52a57340263d116c046f868e99fb44db | |
| parent | e34e0536b16cf89e6e3858c74c4ae66b01f89609 (diff) | |
| parent | a5506610ad7b497dadbab1ccde471b3d13c614ff (diff) | |
| download | django-rest-framework-22569e8202ae746d5c6211c3095aeddd2ed91904.tar.bz2 | |
Merge pull request #2733 from pquentin/patch-reverse
Put the needed import in one example
| -rw-r--r-- | docs/api-guide/versioning.md | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/docs/api-guide/versioning.md b/docs/api-guide/versioning.md index a227a4a3..846698fc 100644 --- a/docs/api-guide/versioning.md +++ b/docs/api-guide/versioning.md @@ -31,6 +31,8 @@ How you vary the API behavior is up to you, but one example you might typically  The `reverse` function included by REST framework ties in with the versioning scheme. You need to make sure to include the current `request` as a keyword argument, like so. +    from rest_framework.reverse import reverse +      reverse('bookings-list', request=request)  The above function will apply any URL transformations appropriate to the request version. For example: | 
