#10036: admin list_display with broken foreignkey fails
----------------------------------+-----------------------------------------
 Reporter:  danros                |       Owner:  nobody    
   Status:  new                   |   Milestone:            
Component:  django.contrib.admin  |     Version:  1.0       
 Keywords:                        |       Stage:  Unreviewed
Has_patch:  0                     |  
----------------------------------+-----------------------------------------
 You have a model which includes a ForeignKey field. In one of the
 instances of that model, that ForeignKey points to something which has
 disappeared for whatever reason.

 If you view the object in the admin, it correctly displays that ForeignKey
 mapping as '----' ie null.

 If you include that ForeignKey field in list_display in admin.py, django
 attempts to look up that relation, fails, and throws a record not found
 exception.

 I realise that this is fundamentally a problem with referential integrity
 of the database - the question is, is django's handling of that a bug?

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10036>
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to