Skip to content

Commit

Permalink
Merge pull request encode#3589 from ryanhiebert/docs-custom-hyperlinks
Browse files Browse the repository at this point in the history
docs - reverse needs kwargs keyword
  • Loading branch information
xordoquy committed Nov 4, 2015
2 parents ae00831 + b86e5af commit 950e5e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api-guide/relations.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 950e5e0

Please sign in to comment.