Opened 17 years ago
Closed 17 years ago
#7097 closed (fixed)
QuerySet.select_related().dates() includes duplicate dates if foreign-key values are different for same day
Reported by: | Adrian Holovaty | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | 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
Marco brought this up here as a bug in the admin, but I've tracked it back to being a bug in the way the post-queryset-refactor dates()
model API works. Failing tests and fix forthcoming.
Change History (2)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [7485]) Added some tests to modeltests/many_to_one that demonstrate a post-queryset-refactor bug in dates(). Refs #7097