From b86e5af878e7d7e36a5249f4ce3465419e8aa1ba Mon Sep 17 00:00:00 2001 From: Ryan Hiebert Date: Tue, 3 Nov 2015 21:45:21 -0600 Subject: [PATCH] reverse needs kwargs keyword Since we aren't passing in any args, we must specify kwargs as a keyword argument. --- docs/api-guide/relations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-guide/relations.md b/docs/api-guide/relations.md index 36cc9494d..51e5f78c4 100644 --- a/docs/api-guide/relations.md +++ b/docs/api-guide/relations.md @@ -407,7 +407,7 @@ In this case we'd need to override `HyperlinkedRelatedField` to get the behavior 'organization_slug': obj.organization.slug, '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): lookup_kwargs = {