In django/contrib/admin/templatetags/admin_list.py in function
result_headers AttributeError is being propagated (apparently it was a
design decision) when getattr fails on the model.

This causes some problems with dynamically generated
fields/properties/methods. I stumbled across it when I tried using
django.contrib.contenttypes.generic.GenericForeignKey in list_display.

Is there any other reason for propagating the Error except to prevent
users from shooting themselves in the foot? If not, I would be +1 for
not propagating the error when I am only accessing the attribute to
get name of the column.

What do you think?

Thanks

--
Honza Král
E-Mail: [EMAIL PROTECTED]
ICQ#:   107471613
Phone:  +420 606 678585

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to