Django “Cannot add or update a child row: a foreign key constraint fails”
DATABASES = {
‘default’: {
…
‘OPTIONS’: {
“init_command”: “SET foreign_key_checks = 0;”,
},
}
}
Django “Cannot add or update a child row: a foreign key constraint fails”
DATABASES = {
‘default’: {
…
‘OPTIONS’: {
“init_command”: “SET foreign_key_checks = 0;”,
},
}
}