Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#11589 closed (fixed)

Typo in documentation for get_object_or_404

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

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 15 years ago.
Documentation change

Download all attachments as: .zip

Change History (7)

comment:1 by tsaylor, 15 years ago

Owner: changed from nobody to tsaylor
Status: newassigned

by tsaylor, 15 years ago

Attachment: patch.diff added

Documentation change

comment:2 by tsaylor, 15 years ago

Has patch: set

Here's a patch with the correction.

comment:3 by Alex Gaynor, 15 years ago

Triage Stage: UnreviewedAccepted

comment:4 by Chris Beaven, 15 years ago

Triage Stage: AcceptedReady for checkin

comment:5 by Russell Keith-Magee, 15 years ago

Resolution: fixed
Status: assignedclosed

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

comment:6 by Russell Keith-Magee, 15 years ago

(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