Opened 6 years ago

Closed 6 years ago

#7104 closed (duplicate)

date_hierarchy in admin broken for multi-table inheritance

Reported by: sorrison@… Owned by: nobody
Component: contrib.admin Version: master
Severity: Keywords: date_hierarchy inheritance
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


Specifying date_hierarchy breaks the admin when the date field is in the parent model.

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by anonymous

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

More info (pressed the submit too early)

This happens on multi-table inheritance and it looks in the child's table instead of the parents.


SomeModel.object.dates('date_from_parent', 'month')

doesn't work either, seems related.

comment:2 Changed 6 years ago by mtredinnick

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

Model inheritance is not expected to work in the admin.

See #6755.

Add Comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.