Opened 8 years ago

Closed 8 years ago

#5391 closed (duplicate)

date_hierarchy breaks for date objects of January 1st

Reported by: Nathaniel Whiteinge <whiteinge@…> Owned by: nobody
Component: contrib.admin Version: master
Severity: Keywords: date_hierarchy qs-rf
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


Verified with the following test model. Add a few entries of January 1st for differing years. DateTimeField fields do not have this problem. Appears to affect at least SQLite and MySQL.

class Test(models.Model):
    test = models.DateField()

    class Admin:
        date_hierarchy = 'test'

    def __unicode__(self):
        return str(self.test)

Change History (3)

comment:1 Changed 8 years ago by flother

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

This sounds like it's related to #5365 and #391.

comment:2 Changed 8 years ago by flother

  • Keywords qs-rf added

comment:3 Changed 8 years ago by ubernostrum

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

This feels like another variation of #3689 and #5365.

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