aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide
diff options
context:
space:
mode:
authorTom Christie2012-11-05 08:36:59 -0800
committerTom Christie2012-11-05 08:36:59 -0800
commit9731b95fc36040ef24dc6fd7ae2cf66c0a8f6a1c (patch)
tree9d2bc1cb1dddb27f20c253712d4dc269afd3e3e8 /docs/api-guide
parentb87f01aa54739ad82e090da1622e4f711a364402 (diff)
parent85b176cf47cd0d4f392ee0a4bae971c709dbfddc (diff)
downloaddjango-rest-framework-9731b95fc36040ef24dc6fd7ae2cf66c0a8f6a1c.tar.bz2
Merge pull request #347 from minddust/master
support for passing custom slug options to HyperlinkedRelatedField
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 86460b4b..3126c0c2 100644
--- a/docs/api-guide/fields.md
+++ b/docs/api-guide/fields.md
@@ -267,6 +267,8 @@ Be default, `HyperlinkedRelatedField` is read-write, although you can change thi
* `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.
* `queryset` - All relational fields must either set a queryset, or set `read_only=True`
+* `slug_url_kwarg` - The named url parameter for the slug field lookup. Default is `slug`
+* `slug_field` - The field on the target that should be used for the lookup. Default is `slug`
## HyperLinkedIdentityField