aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/fields.py
diff options
context:
space:
mode:
Diffstat (limited to 'rest_framework/fields.py')
-rw-r--r--rest_framework/fields.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rest_framework/fields.py b/rest_framework/fields.py
index 5ce76817..cf7e692e 100644
--- a/rest_framework/fields.py
+++ b/rest_framework/fields.py
@@ -379,7 +379,8 @@ class HyperlinkedIdentityField(Field):
A field that represents the model's identity using a hyperlink.
"""
def __init__(self, *args, **kwargs):
- # TODO: Make this mandatory
+ # TODO: Make this mandatory, and have the HyperlinkedModelSerializer
+ # set it on-the-fly
self.view_name = kwargs.pop('view_name', None)
super(HyperlinkedIdentityField, self).__init__(*args, **kwargs)