diff options
| author | Xavier Ordoquy | 2015-01-10 10:41:12 +0100 |
|---|---|---|
| committer | Xavier Ordoquy | 2015-01-10 10:41:12 +0100 |
| commit | d8dbd8679080035de4e785a8e7b998fb01f4052b (patch) | |
| tree | baceae881ed53e5a25295367f6a58bb6fe1c131e /api-guide/relations/index.html | |
| parent | c1e4ec0c64933da5411e4cc3e63894d5f82cc337 (diff) | |
| download | django-rest-framework-d8dbd8679080035de4e785a8e7b998fb01f4052b.tar.bz2 | |
Update documentation
Diffstat (limited to 'api-guide/relations/index.html')
| -rw-r--r-- | api-guide/relations/index.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/api-guide/relations/index.html b/api-guide/relations/index.html index 85378cc5..ee51a7e3 100644 --- a/api-guide/relations/index.html +++ b/api-guide/relations/index.html @@ -664,6 +664,7 @@ class Track(models.Model): <ul> <li><code>view_name</code> - The view name that should be used as the target of the relationship. If you're using <a href="http://www.django-rest-framework.org/api-guide/routers#defaultrouter">the standard router classes</a> this will be a string with the format <code><model_name>-detail</code>. <strong>required</strong>.</li> <li><code>lookup_field</code> - 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 <code>'pk'</code>.</li> +<li><code>lookup_url_kwarg</code> - The name of the keyword argument defined in the URL conf that corresponds to the lookup field. Defaults to using the same value as <code>lookup_field</code>.</li> <li><code>format</code> - If using format suffixes, hyperlinked fields will use the same format suffix for the target unless overridden by using the <code>format</code> argument.</li> </ul> <hr /> |
