Skip to content

Commit be2bcf7

Browse files
committed
Documentation: Correct the signature for HyperlinkedRelatedField.get_object()
1 parent a21484d commit be2bcf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api-guide/relations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ The `get_url` method is used to map the object instance to its URL representatio
384384
May raise a `NoReverseMatch` if the `view_name` and `lookup_field`
385385
attributes are not configured to correctly match the URL conf.
386386

387-
**get_object(self, queryset, view_name, view_args, view_kwargs)**
387+
**get_object(self, view_name, view_args, view_kwargs)**
388388

389389
If you want to support a writable hyperlinked field then you'll also want to override `get_object`, in order to map incoming URLs back to the object they represent. For read-only hyperlinked fields there is no need to override this method.
390390

0 commit comments

Comments
 (0)