def activate_foreign_keys(sender, connection, **kwargs):
    """Enable integrity constraint with sqlite."""
if connection.vendor == 'sqlite':
    cursor = connection.cursor()
Как заставить ON DELETE CASCADE работать в sqlite 3.7.4?