diff options
| author | Tom Christie | 2015-01-05 11:02:28 +0000 |
|---|---|---|
| committer | Tom Christie | 2015-01-05 11:02:28 +0000 |
| commit | 6168f60ba80a84768172437c09957c1fab05f014 (patch) | |
| tree | 4922399b5996d6cd0fdeb4aad2fbb99698f3a1c8 /docs/api-guide/relations.md | |
| parent | 889a0bdeca942995ab32bf19c3d9fdbfaeec58ec (diff) | |
| parent | 8cf37449715c32c4a692667814466c7f32e8734f (diff) | |
| download | django-rest-framework-6168f60ba80a84768172437c09957c1fab05f014.tar.bz2 | |
Merge branch 'master' into version-3.1
Diffstat (limited to 'docs/api-guide/relations.md')
| -rw-r--r-- | docs/api-guide/relations.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/api-guide/relations.md b/docs/api-guide/relations.md index e56db229..50e3b7b5 100644 --- a/docs/api-guide/relations.md +++ b/docs/api-guide/relations.md @@ -231,6 +231,7 @@ This field is always read-only. * `view_name` - The view name that should be used as the target of the relationship. If you're using [the standard router classes][routers] this will be a string with the format `<model_name>-detail`. **required**. * `lookup_field` - The field on the target that should be used for the lookup. Should correspond to a URL keyword argument on the referenced view. Default is `'pk'`. +* `lookup_url_kwarg` - The name of the keyword argument defined in the URL conf that corresponds to the lookup field. Defaults to using the same value as `lookup_field`. * `format` - If using format suffixes, hyperlinked fields will use the same format suffix for the target unless overridden by using the `format` argument. --- |
