mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 08:29:59 +03:00
Merge 5bded1ecf0
into 55584928ca
This commit is contained in:
commit
5a8a6cfb70
|
@ -403,7 +403,7 @@ class HyperlinkedRelatedField(RelatedField):
|
||||||
except:
|
except:
|
||||||
raise ValidationError(self.error_messages['no_match'])
|
raise ValidationError(self.error_messages['no_match'])
|
||||||
|
|
||||||
if match.url_name != self.view_name:
|
if match.view_name != self.view_name:
|
||||||
raise ValidationError(self.error_messages['incorrect_match'])
|
raise ValidationError(self.error_messages['incorrect_match'])
|
||||||
|
|
||||||
pk = match.kwargs.get(self.pk_url_kwarg, None)
|
pk = match.kwargs.get(self.pk_url_kwarg, None)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user