#16128: cascade delete does not work for proxy models -------------------------------------+------------------------------------- Reporter: xkennyx@… | Owner: nobody Type: Bug | Status: reopened Milestone: | Component: Database layer Version: 1.3 | (models, ORM) Resolution: | Severity: Normal Triage Stage: | Keywords: cascade delete Unreviewed | proxy meta Needs documentation: 0 | Has patch: 0 Patch needs improvement: 0 | Needs tests: 0 | Easy pickings: 0 -------------------------------------+-------------------------------------
Comment (by xkennyx@…): {{{ (this was not posted) Try this attached test. and these steps: 1) go to admin page 2) create new user "test" 3) create new profile for user "test" 4) try delete user "test" and there starts problem, only user is deleted and not profile. (It can be deleted in sqlite3 but in postgresql it fail because of constrain) when you change in model the foreign key to User then delete ask to delete also profile }}} -- Ticket URL: <https://code.djangoproject.com/ticket/16128#comment:4> 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.