Code

Opened 6 years ago

Closed 6 years ago

Last modified 3 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:

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.

Attachments (0)

Change History (5)

comment:1 Changed 6 years ago by gav

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

comment:2 Changed 6 years ago by jacob

  • milestone set to 1.0

comment:3 Changed 6 years ago by mtredinnick

Fixed in [7763].

comment:4 Changed 6 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

comment:5 Changed 3 years ago by jacob

  • milestone 1.0 deleted

Milestone 1.0 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.