#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)
Change History (4)
by , 16 years ago
comment:1 by , 16 years ago
Component: | Uncategorized → Documentation |
---|---|
Keywords: | typo added |
comment:2 by , 16 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:3 by , 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.
invalid: http://code.djangoproject.com/browser/django/trunk/django/shortcuts/__init__.py#L33