Opened 10 years ago

Closed 10 years ago

Last modified 10 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


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

Attachments (1)

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

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by Flavio Curella

Attachment: typo.diff added

comment:1 Changed 10 years ago by Flavio Curella

Component: UncategorizedDocumentation
Keywords: typo added

comment:2 Changed 10 years ago by Alex Gaynor

Resolution: invalid
Status: newclosed

comment:3 Changed 10 years ago by James Bennett

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