diff options
| author | Tom Christie | 2013-06-10 17:46:55 +0100 | 
|---|---|---|
| committer | Tom Christie | 2013-06-10 17:46:55 +0100 | 
| commit | 5d0aeef69ecec70242513195c19edcb622e14371 (patch) | |
| tree | c2c1992e8cb2861b11b1465bba67d9cee564baf2 /docs/api-guide/generic-views.md | |
| parent | 351e172d4568e39df9760f989eb976c726e604ce (diff) | |
| download | django-rest-framework-5d0aeef69ecec70242513195c19edcb622e14371.tar.bz2 | |
Better docs related to lookup_field and hyperlinked serializers. Closes #920.
Diffstat (limited to 'docs/api-guide/generic-views.md')
| -rwxr-xr-x | docs/api-guide/generic-views.md | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/docs/api-guide/generic-views.md b/docs/api-guide/generic-views.md index c8216954..cd1bc7a1 100755 --- a/docs/api-guide/generic-views.md +++ b/docs/api-guide/generic-views.md @@ -60,7 +60,7 @@ The following attributes control the basic view behavior.  * `queryset` - The queryset that should be used for returning objects from this view.  Typically, you must either set this attribute, or override the `get_queryset()` method.  * `serializer_class` - The serializer class that should be used for validating and deserializing input, and for serializing output.  Typically, you must either set this attribute, or override the `get_serializer_class()` method. -* `lookup_field` - The field that should be used to lookup individual model instances.  Defaults to `'pk'`.  The URL conf should include a keyword argument corresponding to this value.  More complex lookup styles can be supported by overriding the `get_object()` method. +* `lookup_field` - The field that should be used to lookup individual model instances.  Defaults to `'pk'`.  The URL conf should include a keyword argument corresponding to this value.  More complex lookup styles can be supported by overriding the `get_object()` method.  Note that when using hyperlinked APIs you'll need to ensure that *both* the API views *and* the serializer classes use lookup fields that correctly correspond with the URL conf.  **Shortcuts**: | 
