Opened 5 years ago

Closed 2 years ago

#10494 closed New feature (fixed)

show query params DoesNotExist from QuerySet.get

Reported by: brondsem Owned by: zefciu
Component: Database layer (models, ORM) Version: 1.0
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no


In db.models.query.QuerySet.get, it'd be nice if it included kwargs when raising DoesNotExist, like it does when it raises MultipleObjectsReturned

Attachments (0)

Change History (7)

comment:1 Changed 5 years ago by jacob

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Design decision needed

comment:2 Changed 3 years ago by SmileyChris

  • Severity set to Normal
  • Type set to New feature

comment:3 Changed 2 years ago by aaugustin

  • Easy pickings set
  • Triage Stage changed from Design decision needed to Accepted
  • UI/UX unset

I'm not sure why this is flagged as DDN. Informative exceptions are good.

comment:4 Changed 2 years ago by zefciu

  • Owner changed from nobody to zefciu
  • Status changed from new to assigned

comment:5 Changed 2 years ago by zefciu

  • Has patch set

Created a patch as a pull request:

comment:6 Changed 2 years ago by oinopion

  • Triage Stage changed from Accepted to Ready for checkin

Looks good.

comment:7 Changed 2 years ago by akaariai

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

In [17917]:

(The changeset message doesn't reference this ticket)

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.