#30748: Abstract model class specifies foreign key – MySQL doesn't have it.
-------------------------------------+-------------------------------------
Reporter: Mike Robinson | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Mike Robinson):
Reopening this, because ''something'' is broken:
{{{
django.db.utils.IntegrityError: (1451, 'Cannot delete or update a parent
row: a foreign key constraint fails
(`gga$GGA`.`forum_member_forumprofile`, CONSTRAINT
`forum_member_forumprofile_user_id_9d6b9b6b_fk_auth_user_id` FOREIGN KEY
(`user_id`) REFERENCES `auth_user` (`id`))')
}}}
If Django was supposed to do the cascading deletes by its own logic, it
didn't.
--
Ticket URL: <https://code.djangoproject.com/ticket/30748#comment:3>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/073.d852b33d272188b267cd85247608daf2%40djangoproject.com.