Opened 6 years ago

Closed 5 years ago

Last modified 5 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 6 years ago.
Documentation change

Download all attachments as: .zip

Change History (7)

comment:1 Changed 6 years ago by tsaylor

  • Needs documentation unset
  • Needs tests unset
  • Owner changed from nobody to tsaylor
  • Patch needs improvement unset
  • Status changed from new to assigned

Changed 6 years ago by tsaylor

Documentation change

comment:2 Changed 6 years ago by tsaylor

  • Has patch set

Here's a patch with the correction.

comment:3 Changed 6 years ago by Alex

  • Triage Stage changed from Unreviewed to Accepted

comment:4 Changed 6 years ago by SmileyChris

  • Triage Stage changed from Accepted to Ready for checkin

comment:5 Changed 5 years ago by russellm

  • Resolution set to fixed
  • Status changed from assigned to closed

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

comment:6 Changed 5 years ago by russellm

(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