Opened 13 years ago

Closed 13 years ago

Last modified 9 years ago

#10666 closed (fixed)

Aggregate with inherited columns does not work as expected

Reported by: Julian Bez Owned by:
Component: Database layer (models, ORM) Version: dev
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


class Thing(models.Model):
    user = models.ForeignKey("auth.user")
    creation_date = models.DateTimeField(_('Creation date'),
    amount = models.PositiveIntegerField()
class Book(Thing):
    blabla = models.ForeignKey("xyz")

# does not work
# does work
# does work

Change History (4)

comment:1 Changed 13 years ago by Alex Gaynor

milestone: 1.1 beta1.1
Triage Stage: UnreviewedAccepted

comment:2 Changed 13 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

(in [10466]) Fixed #10666 -- Corrected the handling of inherited fields with aggregate() and annotate(). Thanks to julienb for the report.

comment:3 Changed 11 years ago by Jacob

milestone: 1.1

Milestone 1.1 deleted

comment:4 Changed 9 years ago by Anssi Kääriäinen

Component: ORM aggregationDatabase layer (models, ORM)
Note: See TracTickets for help on using tickets.
Back to Top