date_hierarchy breaks for date objects of January 1st
|Reported by:||Nathaniel Whiteinge <whiteinge@…>||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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)