diff options
| author | Kevin Brown | 2014-12-15 20:59:48 -0500 |
|---|---|---|
| committer | Kevin Brown | 2014-12-15 20:59:48 -0500 |
| commit | d872c8e2e7f3e5c3a4d8d648361394858f68f5d6 (patch) | |
| tree | f3c425270d9797b3f27517a02d62383fd861b842 | |
| parent | a15db353bf3eea625a97cb9eb942829172f2ab9f (diff) | |
| parent | d71ef9c6d810115bfe0de6327139c6886932cdb8 (diff) | |
| download | django-rest-framework-d872c8e2e7f3e5c3a4d8d648361394858f68f5d6.tar.bz2 | |
Merge pull request #2282 from jpadilla/master
Closes #2281
| -rw-r--r-- | docs/api-guide/relations.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api-guide/relations.md b/docs/api-guide/relations.md index a79b6ea5..e56db229 100644 --- a/docs/api-guide/relations.md +++ b/docs/api-guide/relations.md @@ -397,7 +397,7 @@ We could define a custom field that could be used to serialize tagged instances, return 'Note: ' + value.text raise Exception('Unexpected type of tagged object') -If you need the target of the relationship to have a nested representation, you can use the required serializers inside the `.to_native()` method: +If you need the target of the relationship to have a nested representation, you can use the required serializers inside the `.to_representation()` method: def to_representation(self, value): """ |
