#9023: OneToOneField delete() problem
---------------------------------------------------+------------------------
          Reporter:  TheShark                      |         Owner:  juriejan   
                 
            Status:  new                           |     Milestone:  1.1        
                 
         Component:  Database layer (models, ORM)  |       Version:  SVN        
                 
        Resolution:                                |      Keywords:  
OneToOneField delete cascade
             Stage:  Accepted                      |     Has_patch:  1          
                 
        Needs_docs:  0                             |   Needs_tests:  0          
                 
Needs_better_patch:  1                             |  
---------------------------------------------------+------------------------
Comment (by Alex):

 We can remove the extra SQL query by essentially unrolling the getattr
 call.  We only need to update the related object if the obj is already
 loaded, so can check this by poking around in __dict__.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9023#comment:9>
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