Opened 3 years ago

Closed 3 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 Changed 3 years ago by Keryn Knight <django@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

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.

comment:2 Changed 3 years ago by bhp

I know and agree with that, just changed it as original wording is too misleading.

comment:3 Changed 3 years ago by Aymeric Augustin

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

Fixed #18281 -- Misleading wording in the tutorial.

Thanks bhp for the report.

Changeset: 367379581fe11ff8a5a7b8729829197750c4dbb0

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