﻿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
4463	Admin crashed if None returned by __unicode__ and list_display not defined	hidded <me@…>	Adrian Holovaty	"Subj.

Testcase:
{{{
  name = models.CharField(verbose_name=u'name', maxlength=255, null=True, blank=True)

  def __unicode__(self):
    return self.name
}}}

Traceback:
{{{
Traceback (most recent call last):
File ""/usr/lib/python2.5/site-packages/django/template/__init__.py"" in render_node
  764. result = node.render(context)
File ""/usr/lib/python2.5/site-packages/django/template/__init__.py"" in render
  909. dict = func(*args)
File ""/usr/lib/python2.5/site-packages/django/contrib/admin/templatetags/admin_list.py"" in result_list
  206. 'results': list(results(cl))}
File ""/usr/lib/python2.5/site-packages/django/contrib/admin/templatetags/admin_list.py"" in results
  201. yield list(items_for_result(cl,res))
File ""/usr/lib/python2.5/site-packages/django/contrib/admin/templatetags/admin_list.py"" in items_for_result
  137. attr = attr()
File ""/usr/lib/python2.5/site-packages/django/db/models/base.py"" in __str__
  91. return force_unicode(self).encode('utf-8')
File ""/usr/lib/python2.5/site-packages/django/utils/encoding.py"" in force_unicode
  38. s = unicode(s)

  TypeError at /admin/blog/contributor/
  coercing to Unicode: need string or buffer, NoneType found
}}}"		closed	contrib.admin	other branch		invalid	unicode unicode-branch admin		Unreviewed	0	0	0	0	0	0
