#16128: cascade delete does not work for proxy models -------------------------------------+------------------------------------- Reporter: xkennyx@… | Owner: nobody Type: Bug | Status: new Milestone: | Component: Database layer Version: 1.3 | (models, ORM) Keywords: cascade delete proxy | Severity: Normal meta | Triage Stage: Unreviewed Has patch: 0 | Easy pickings: 0 -------------------------------------+------------------------------------- Hi all :), there is problem with cascade delete, when proxy model is used. example:
{{{ class ExUser(User): class Meta: proxy = True # work: class Profile(models.Model): user = models.ForeignKey(User) # does not work: class Profile(models.Model): user = models.ForeignKey(ExUser) }}} when I delete user, then in first scenario is profile also deleted, but when I want use proxy as foreign key, then profile is not deleted, and it lead to integrity problem in DB -- Ticket URL: <https://code.djangoproject.com/ticket/16128> Django <https://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.