Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#11589 closed (fixed)

Typo in documentation for get_object_or_404

Reported by: tsaylor Owned by: tsaylor
Component: Uncategorized Version: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

The documentation for get_object_or_404 lists the function and arguments like this:

get_object_or_404(object, *args, **kwargs)

But in the Required arguments section, the first argument is referred to as 'klass'. Since the documentation for get_list_or_404 uses 'klass' in both places, I presume that's the intention here as well.

Attachments (1)

patch.diff (484 bytes) - added by tsaylor 7 years ago.
Documentation change

Download all attachments as: .zip

Change History (7)

comment:1 Changed 7 years ago by tsaylor

Needs documentation: unset
Needs tests: unset
Owner: changed from nobody to tsaylor
Patch needs improvement: unset
Status: newassigned

Changed 7 years ago by tsaylor

Attachment: patch.diff added

Documentation change

comment:2 Changed 7 years ago by tsaylor

Has patch: set

Here's a patch with the correction.

comment:3 Changed 7 years ago by Alex Gaynor

Triage Stage: UnreviewedAccepted

comment:4 Changed 7 years ago by Chris Beaven

Triage Stage: AcceptedReady for checkin

comment:5 Changed 7 years ago by Russell Keith-Magee

Resolution: fixed
Status: assignedclosed

(In [11531]) Fixed #11589 -- Corrected an argument in the shortcuts documentation. Thanks to tsaylor for the report.

comment:6 Changed 7 years ago by Russell Keith-Magee

(In [11553]) [1.1.X] Fixed #11589 -- Corrected an argument in the shortcuts documentation. Thanks to tsaylor for the report.

Merge of r11531 and r11532 from trunk.

Note: See TracTickets for help on using tickets.
Back to Top