#12003: Admin application deltes related objects on "null=True" relation.
---------------------------------------------------+------------------------
 Reporter:  x_O                                    |       Owner:  nobody    
   Status:  new                                    |   Milestone:            
Component:  django.contrib.admin                   |     Version:  1.1       
 Keywords:  admin delete remove related null True  |       Stage:  Unreviewed
Has_patch:  0                                      |  
---------------------------------------------------+------------------------
 We have two models
 {{{
 class First(db.models):
     second_item = models.ForeignKey('Second',null=True)
     ...

 class  (db.models):
     ...
 }}}


 Both models registered in admin.py as AdminModels.

 Trying to delete object created from "Second" class
 which is RELATED to other one created from "First" class, admin tells that
 will remove also that "First" object. Important is that relation in
 ForeignKey is null.

 My interpretation of that "null=True" for admin.contrib: should set First
 objects with 'second_item' attribute = None.

 Checked against 1.1.

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