Opened 16 years ago

Closed 16 years ago

Last modified 13 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: 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 George Vilches, 16 years ago

Keywords: qsrf-cleanup added

comment:2 by Jacob, 16 years ago

milestone: 1.0

comment:3 by Malcolm Tredinnick, 16 years ago

Fixed in [7763].

comment:4 by Malcolm Tredinnick, 16 years ago

Resolution: fixed
Status: newclosed

comment:5 by Jacob, 13 years ago

milestone: 1.0

Milestone 1.0 deleted

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