#12348: ForeignKeyRawIdWidget doesn't catch ObjectDoesNotExist when raw_id is
illegal
-----------------------------------+----------------------------------------
 Reporter:  jay                    |       Owner:  nobody    
   Status:  new                    |   Milestone:            
Component:  django.contrib.admin   |     Version:  1.1       
 Keywords:  ForeignKeyRawIdWidget  |       Stage:  Unreviewed
Has_patch:  1                      |  
-----------------------------------+----------------------------------------
 If a FK is referred raw_id_fields ModelAdmin, it will use ModelChoiceField
 with ForeignKeyRawIdWidget to render itself.

 ForeignKeyRawIdWidget tests whether the value passed in the render()
 method is null to see if it has to call label_for_value to show the repr
 of the referred record. So if the value is faulty but not null,
 label_for_value will still be called, then ObjectDostNotExist will be
 thrown without any handling.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12348>
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-upda...@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.


Reply via email to