#10963: InlineAdminForm clobbers "content_type_id"
----------------------------------+-----------------------------------------
 Reporter:  tclineks              |       Owner:  nobody    
   Status:  new                   |   Milestone:  1.1       
Component:  django.contrib.admin  |     Version:  SVN       
 Keywords:                        |       Stage:  Unreviewed
Has_patch:  1                     |  
----------------------------------+-----------------------------------------
 To properly build a view on site link InlineAdminForm's init stores the
 ContentType id on the instance for lookup in the template(s).  This name
 clobbers the common case with GenericForeignKeys. Setting that attribute
 means later lookups in ReverseSingleRelatedObjectDescriptor.__get__ pick
 up this value.

 I haven't isolated this into a regression test and am attaching a naive
 patch just making the name less likely to collide.

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