Skip to content

Commit

Permalink
Update relations.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
Relrin committed Dec 11, 2016
1 parent 21fff1a commit 9b5ddcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/relations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ In this case we'd need to override :class:`HyperlinkedRelatedField` to get the b
def get_url(self, obj, view_name, request, format):
relative = self.context.get('relative', False)
args = tuple(map(str, [obj.organization.slug, obj.pk])
args = tuple(map(str, [obj.organization.slug, obj.pk]))
return reverse(view_name, args=args, relative=relative)
def get_object(self, view_name, view_args, view_kwargs):
Expand Down

0 comments on commit 9b5ddcb

Please sign in to comment.