﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
31590	Admin date_hierarchy crashes on datetime field with no data	Kyle	Kyle	"Just upgraded to Django 3.1 alpha and ran into this issue. It looks like its related to commit 55cdf6c52db07f29128741b8734a523ed042e465. When there is no data in the admin or all values are null, a date hierarchy on a datetime field will cause a crash.


{{{
File ""django/contrib/admin/templatetags/admin_list.py"", line 386, in date_hierarchy
  for k, v in date_range.items()
File ""django/contrib/admin/templatetags/admin_list.py"", line 386, in <dictcomp>
  for k, v in date_range.items()
File ""django/utils/timezone.py"", line 212, in is_aware
  return value.utcoffset() is not None

Exception Value: 'NoneType' object has no attribute 'utcoffset'
}}}


I'm starting work on a fix."	Bug	closed	contrib.admin	3.1	Release blocker	fixed	date_hierarchy		Ready for checkin	1	0	0	0	0	0
