mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-27 03:54:01 +03:00
Merge pull request #3589 from ryanhiebert/docs-custom-hyperlinks
docs - reverse needs kwargs keyword
This commit is contained in:
commit
950e5e0fec
|
@ -407,7 +407,7 @@ In this case we'd need to override `HyperlinkedRelatedField` to get the behavior
|
||||||
'organization_slug': obj.organization.slug,
|
'organization_slug': obj.organization.slug,
|
||||||
'customer_pk': obj.pk
|
'customer_pk': obj.pk
|
||||||
}
|
}
|
||||||
return reverse(view_name, url_kwargs, request=request, format=format)
|
return reverse(view_name, kwargs=url_kwargs, request=request, format=format)
|
||||||
|
|
||||||
def get_object(self, view_name, view_args, view_kwargs):
|
def get_object(self, view_name, view_args, view_kwargs):
|
||||||
lookup_kwargs = {
|
lookup_kwargs = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user