#7105 closed (fixed)
dates queryset method doesn't work for parent date fields
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | dev |
| Severity: | Keywords: | qsrf-cleanup | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
I brought this up in #7104 but maybe should be a separate ticket. (or maybe I'm straight out wrong)
If using multi-table inheritance you can not use the parents date field in the date queryset method.
Is this meant to work?
SomeModel.objects.dates('date_field_from_parent_model', 'month')
I get an error as it is trying to look in the childs database table.
Change History (5)
comment:1 by , 17 years ago
| Keywords: | qsrf-cleanup added |
|---|
comment:2 by , 17 years ago
| milestone: | → 1.0 |
|---|
comment:3 by , 17 years ago
comment:4 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Fixed in [7763].