On Thu, Dec 11, 2008 at 12:06 PM, sed...@gmail.com <sed...@gmail.com> wrote:
...
> As of r8165 of Django (post qs-refactor), model_instance.delete() does
> *not* null out instances with nullable foreign keys that point to the
> about-to-be deleted instance.  It deletes them instead.  We have a
> special field called NullableForeignKey that we use on models where we
> want the field to be nulled out when the object pointed to is
> deleted.  I've pasted the impl. here: http://dpaste.com/98186/ , along
> with some tests to show how to use it.

Hmm.

I guess I should try running the code.  I must not understand what
this is doing:
http://code.djangoproject.com/browser/django/trunk/django/db/models/base.py?rev=8165#L420
http://code.djangoproject.com/browser/django/trunk/django/db/models/query.py?rev=8165#L808

--~--~---------~--~----~------------~-------~--~----~
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