Hello, I get this error when I try to test my app. I'm using mysql. I think
it's when django tries to delete the table. I've tried with all On delete
options and the error keeps happening.

IntegrityError: (1452, 'Cannot add or update a child row: a foreign key
constraint fails (`test_django`.`locations_location`, CONSTRAINT
`locations_location_ibfk_1` FOREIGN KEY (`belongsTo_id`) REFERENCES
`locations_location` (`id`) ON DELETE SET NULL ON UPDATE SET NULL)')


-- 
Gràcies,

Rubén

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to