#18747: Django admin list_display eats AttributeError by mistake
--------------------------------+--------------------
     Reporter:  liu.dongyuan@…  |      Owner:  nobody
         Type:  Bug             |     Status:  new
    Component:  contrib.admin   |    Version:  1.4
     Severity:  Normal          |   Keywords:
 Triage Stage:  Unreviewed      |  Has patch:  0
Easy pickings:  0               |      UI/UX:  0
--------------------------------+--------------------
 When Django admin list_display calling custom method, the exception
 AttributeError can't be seen.

 See the sample snippets below.


 {{{
 class ExampleAdmin(admin.ModelAdmin):
     def example(self, field):
         raise AttributeError
     list_display = ('example',)
 }}}

 {{{
 class ExampleAdmin(admin.ModelAdmin):
     def example(self, field):
         a = 1
         a.encode("utf8")
     list_display = ('example',)
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18747>
Django <https://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 https://groups.google.com/groups/opt_out.


Reply via email to