Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#9420 closed (fixed)

Correction to documentation on get(**kwargs) queryset method

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

Description

Found at: http://docs.djangoproject.com/en/dev/ref/models/querysets/#id5

Incorrect text: "get() raises AssertionError if more than one object was found."

Suggested correction: "get() raises a MultipleObjectsReturned exception if more than one object was found. The MultipleObjectsReturned exception is an attribute of the model class."

Change History (4)

comment:1 Changed 7 years ago by mtredinnick

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

(In [9257]) Fixed #9420 -- Fixed an exception type in the documentation of Queryset.get().
Based on a suggestion from daveyjoe.

comment:2 Changed 7 years ago by mtredinnick

(In [9261]) [1.0.X] Fixed #9420 -- Fixed an exception type in the documentation of
Queryset.get(). Based on a suggestion from daveyjoe.

Backport of r9257 from trunk.

comment:3 Changed 6 years ago by mtredinnick

(In [10598]) Fixed #9420 -- Fixed admin templates CSS.

Removed some unconditional, invalid, IE-specific notations that were
protecting IE 5 users. IE 5 is sufficiently old, we don't really need to
do that and helping that small userbase at the expense of everybody else
was a slight priority inversion.

Patch from G2P and reviwed by Wilson Miner (who made the original
changes).

comment:4 Changed 6 years ago by CollinAnderson

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

[10598] actually fixed #9492.

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