#7853: Problem with model inheritance when parent has relation to self
---------------------------------------+------------------------------------
          Reporter:  [EMAIL PROTECTED]  |         Owner:  nobody           
            Status:  reopened          |     Milestone:  1.0 beta         
         Component:  Database wrapper  |       Version:  SVN              
        Resolution:                    |      Keywords:  model inheritance
             Stage:  Accepted          |     Has_patch:  0                
        Needs_docs:  0                 |   Needs_tests:  0                
Needs_better_patch:  0                 |  
---------------------------------------+------------------------------------
Changes (by russellm):

  * stage:  Unreviewed => Accepted

Comment:

 The failure occurs when an update call is made to clear the foreign key,
 but the update call assumes the foreign key is on the child class, not the
 parent. The action is correct; the SQL that is generate is not. The
 solution isn't immediately obvious to me, so I've uploaded the test case
 in case someone else gets to this problem first.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/7853#comment:6>
Django Code <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