#7145: 'NoneType' object has no attribute 'year' in admin change list when using date_hierarchy with a date field with null values ----------------------------------------------------------+----------------- Reporter: Eric Walstad <e...@ericwalstad.com> | Owner: nobody Status: reopened | Milestone: 1.3 Component: django.contrib.admin | Version: SVN Resolution: | Keywords: Stage: Unreviewed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 1 Needs_better_patch: 0 | ----------------------------------------------------------+----------------- Changes (by daniellindsley):
* status: closed => reopened * resolution: duplicate => * needs_tests: 0 => 1 * milestone: => 1.3 Comment: Sorry, but this was not a duplicate of #7147. It is still a bug as of Django 1.2.X. Fixing it to omit null dates is easy but creating a test for it is proving difficult. I'll try to upload a patch shortly. -- Ticket URL: <http://code.djangoproject.com/ticket/7145#comment:3> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.