Opened 9 years ago

Closed 9 years ago

#25509 closed Cleanup/optimization (duplicate)

Make QuerySet.__repr__ less confusing

Reported by: Aymeric Augustin Owned by: nobody
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

As discussed on #django-dev:

[22:06:04]  <+mYk>	AssertionError: ['1.8', '1.7', '1.4'] != ['1.8', '1.7', '1.4'] <= no comment.
[22:07:36]  <+mYk>	(yes, I know assertQuerySetEqual)
[22:18:05]  <+Alex_Gaynor>	mYk: Should we just change repr(queryset)? It's "obviously" wrong
[22:18:17]  <+Alex_Gaynor>	QuerySet([...]) would save a lot of confused debugging
[22:18:28]  <+mYk>	yes it would
[00:03:30]  <+carljm>	+Alex_Gaynor: +1

Change History (1)

comment:1 by Aymeric Augustin, 9 years ago

Resolution: duplicate
Status: newclosed

Oops, see #25508.

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