Opened 13 years ago
Closed 13 years ago
#18281 closed Cleanup/optimization (fixed)
subtle meaning of wording again?
Reported by: | bhp | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.4 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
https://docs.djangoproject.com/en/1.4/intro/tutorial03/#a-shortcut-get-object-or-404
The get_object_or_404() function takes a Django model as its first argument and an arbitrary number of keyword arguments, which it passes to the MODEL's get() function.
Change History (3)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
I know and agree with that, just changed it as original wording is too misleading.
comment:3 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed #18281 -- Misleading wording in the tutorial.
Thanks bhp for the report.
Changeset: 367379581fe11ff8a5a7b8729829197750c4dbb0
Note:
See TracTickets
for help on using tickets.
The proposed new wording is just as problematic - the get() method is called on a manager or queryset instance, never on the Model class itself.