Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#10386 closed (invalid)

typo in doc for 'get_object_or_404' and 'get_object_or_404'

Reported by: Flavio Curella Owned by: nobody
Component: Documentation Version: 1.0
Severity: Keywords: typo
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

the 'class' arguments are erroneously written as 'klass'

Attachments (1)

typo.diff (557 bytes ) - added by Flavio Curella 16 years ago.

Download all attachments as: .zip

Change History (4)

by Flavio Curella, 16 years ago

Attachment: typo.diff added

comment:1 by Flavio Curella, 16 years ago

Component: UncategorizedDocumentation
Keywords: typo added

comment:2 by Alex Gaynor, 16 years ago

Resolution: invalid
Status: newclosed

comment:3 by James Bennett, 16 years ago

And this is the correct way to do it -- class is a reserved word in Python, and you can't use it for a variable, so typically people switch a letter or two or abbreviate it cls (on class methods).

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