#15654: qs.delete() fails if a model isn't in INSTALED_APPS and the related 
objects
cache is already filled.
------------------------------------------+---------------------------
 Reporter:  apollo13                      |         Owner:  nobody
   Status:  new                           |     Milestone:
Component:  Database layer (models, ORM)  |       Version:  SVN
 Keywords:                                |  Triage Stage:  Unreviewed
Has patch:  0                             |
------------------------------------------+---------------------------
 ContentType.objects.delete() fails for use since 1.3 (on_delete support to
 be exact) since it tries to delete all related objects pointing to that
 contenttype. If one of the related models is not in INSTALLED_APPS (in our
 case django.contrib.auth), this can fail if the model got imported (which
 registers it etc…; in our case django.contrib.contenttypes.generic
 imported auth.models -- via contrib.admin). Attached is a testcase
 showcasing the issue.

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