aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide
diff options
context:
space:
mode:
authorTom Christie2012-11-06 09:02:37 -0800
committerTom Christie2012-11-06 09:02:37 -0800
commit8ca6569a067b80474eb1aba2b3938e661be25659 (patch)
tree95a3d5ed5bf07246e4b78cbbfcf829eb152f541d /docs/api-guide
parent4f5a6fca64bb428ed13a639eae59bc4197939449 (diff)
parent2c52a2581f690eca62a203d9b5344ac39b43ba74 (diff)
downloaddjango-rest-framework-8ca6569a067b80474eb1aba2b3938e661be25659.tar.bz2
Merge pull request #378 from minddust/master
slug support for HyperlinkedIdentityField
Diffstat (limited to 'docs/api-guide')
-rw-r--r--docs/api-guide/fields.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/api-guide/fields.md b/docs/api-guide/fields.md
index 411f7944..2a8949a1 100644
--- a/docs/api-guide/fields.md
+++ b/docs/api-guide/fields.md
@@ -280,5 +280,7 @@ This field is always read-only.
* `view_name` - The view name that should be used as the target of the relationship. **required**.
* `format` - If using format suffixes, hyperlinked fields will use the same format suffix for the target unless overridden by using the `format` argument.
+* `slug_field` - The field on the target that should be used for the lookup. Default is `'slug'`.
+* `slug_url_kwarg` - The named url parameter for the slug field lookup. Default is to use the same value as given for `slug_field`.
[cite]: http://www.python.org/dev/peps/pep-0020/