Opened 8 years ago

Closed 8 years ago

Last modified 5 years ago

#7105 closed (fixed)

dates queryset method doesn't work for parent date fields

Reported by: sorrison@… Owned by: nobody
Component: Database layer (models, ORM) Version: master
Severity: Keywords: qsrf-cleanup
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


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 Changed 8 years ago by George Vilches

Keywords: qsrf-cleanup added
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset

comment:2 Changed 8 years ago by Jacob

milestone: 1.0

comment:3 Changed 8 years ago by Malcolm Tredinnick

Fixed in [7763].

comment:4 Changed 8 years ago by Malcolm Tredinnick

Resolution: fixed
Status: newclosed

comment:5 Changed 5 years ago by Jacob

milestone: 1.0

Milestone 1.0 deleted

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