Django Desativar as verificações de chave estrangeira temporária
from django.db import connection
with connection.constraint_checks_disabled():
do_stuff()
Salik Sheraz
from django.db import connection
with connection.constraint_checks_disabled():
do_stuff()