Malcolm, Jacob pointed me at you, since the code in question was a
commit around QSRF-time.

I'm aware of ticket #7539, but would prefer to keep the scope narrower
and ask the hopefully-useful question-- is #9308 a bug?  If so, I'd
like to close it for 1.1.

In summary, #9308 describes a situation where B has a nullable FK to
A, and an instance of A is being deleted.   Currently, any B's related
to A also get deleted.

#9308 takes the position that any B.a_id's should be set to null
rather than B instances being removed along with the desired deletion
of A.   I'm asking explicitly whether this is is a bug?

Commit [8128] added some code which looks vaguely related, with the
commit message:
"Fixed #7853 -- Fixed another case of deleting inherited models with
foreign key references. Thanks to Russell for the test case that
demonstrated the problem."

There's a patch now which alters that code, but I'm not convinced it's
fixing anything.  This area is fairly lightly tested:
http://code.djangoproject.com/browser/django/trunk/tests/modeltests/delete/models.py?rev=8030#L36

Thoughts?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to