aboutsummaryrefslogtreecommitdiffstats
path: root/api-guide/relations/index.html
diff options
context:
space:
mode:
authorTom Christie2014-12-17 16:23:42 +0000
committerTom Christie2014-12-17 16:23:42 +0000
commit760da25c6018eff02b3aab33dc6fea7c93881d9f (patch)
treecda0f7ea1821d3054be7f9e9251e37b4c06281b7 /api-guide/relations/index.html
parentc05c1f5c7cf562634382c25716d7a7588794f107 (diff)
downloaddjango-rest-framework-760da25c6018eff02b3aab33dc6fea7c93881d9f.tar.bz2
Update documentation
Diffstat (limited to 'api-guide/relations/index.html')
-rw-r--r--api-guide/relations/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/api-guide/relations/index.html b/api-guide/relations/index.html
index 03e88565..2c4fe9b6 100644
--- a/api-guide/relations/index.html
+++ b/api-guide/relations/index.html
@@ -792,7 +792,7 @@ class Note(models.Model):
return 'Note: ' + value.text
raise Exception('Unexpected type of tagged object')
</code></pre>
-<p>If you need the target of the relationship to have a nested representation, you can use the required serializers inside the <code>.to_native()</code> method:</p>
+<p>If you need the target of the relationship to have a nested representation, you can use the required serializers inside the <code>.to_representation()</code> method:</p>
<pre><code> def to_representation(self, value):
"""
Serialize bookmark instances using a bookmark serializer,