#12760: related models with Foreignkey.null=True must not get deleted on delete 
of
their relation
------------------------------------------+---------------------------------
 Reporter:  defaultwombat                 |       Owner:  nobody    
   Status:  new                           |   Milestone:            
Component:  Database layer (models, ORM)  |     Version:  1.1       
 Keywords:  delete foreignkey null        |       Stage:  Unreviewed
Has_patch:  0                             |  
------------------------------------------+---------------------------------
 The "delete related objects" process appears bugged to me.
 In some lines of the code it looks like the intention was to set
 foreignkeys of related objects to null if possible, instead of deleting
 the object. Nevertheless the deletion does happen.

 This is only about Realtions with Foreignkey(..,null=True). Other
 relations work as intended.

 === Problem 1: ===
 Related Objects get deleted during delete_objects()

 === Problem 2: ===
 Subrelation of related objects get collected during _collect_sub_objects()


 Please have a look at the test file.

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