diff options
| author | Tom Christie | 2014-09-12 09:49:35 +0100 | 
|---|---|---|
| committer | Tom Christie | 2014-09-12 09:49:35 +0100 | 
| commit | 0d354e8f92c7daaf8dac3b80f0fd64f983f21e0b (patch) | |
| tree | a691c06620fe2f49a73904c8fbe80f7a96472249 /rest_framework/relations.py | |
| parent | adcb64ab4198f35c61d5be68956d201685ed3538 (diff) | |
| download | django-rest-framework-0d354e8f92c7daaf8dac3b80f0fd64f983f21e0b.tar.bz2 | |
to_internal_value() and to_representation()
Diffstat (limited to 'rest_framework/relations.py')
| -rw-r--r-- | rest_framework/relations.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/rest_framework/relations.py b/rest_framework/relations.py index 661a1249..30a252db 100644 --- a/rest_framework/relations.py +++ b/rest_framework/relations.py @@ -110,7 +110,7 @@ class HyperlinkedIdentityField(RelatedField):      def get_attribute(self, instance):          return instance -    def to_primative(self, value): +    def to_representation(self, value):          request = self.context.get('request', None)          format = self.context.get('format', None) | 
