Commit 47f0d17f by Tom Christie

Merge pull request #562 from mjtamlyn/view-name

Support URL namespaces.
parents 55584928 5bded1ec
......@@ -403,7 +403,7 @@ class HyperlinkedRelatedField(RelatedField):
except:
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'])
pk = match.kwargs.get(self.pk_url_kwarg, None)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment