mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +03:00
Fix view_name argument to HyperlinkedIdentityField
This commit is contained in:
parent
102e906840
commit
2a89cb4fb7
|
@ -381,7 +381,7 @@ class HyperlinkedIdentityField(Field):
|
|||
def __init__(self, *args, **kwargs):
|
||||
# TODO: Make this mandatory
|
||||
self.view_name = kwargs.pop('view_name', None)
|
||||
super(HyperlinkedRelatedField, self).__init__(*args, **kwargs)
|
||||
super(HyperlinkedIdentityField, self).__init__(*args, **kwargs)
|
||||
|
||||
def field_to_native(self, obj, field_name):
|
||||
request = self.context.get('request', None)
|
||||
|
|
Loading…
Reference in New Issue
Block a user