

def delete(self, force_drop=False, *args, **kwargs):
    "\n        Deletes this row. Drops the tenant's schema if the attribute\n        auto_drop_schema set to True.\n        "
    if (connection.schema_name not in (self.schema_name, get_public_schema_name())):
        raise Exception(("Can't delete tenant outside it's own schema or the public schema. Current schema is %s." % connection.schema_name))
    if (schema_exists(self.schema_name) and (self.auto_drop_schema or force_drop)):
        cursor = connection.cursor()
        cursor.execute(('DROP SCHEMA %s CASCADE' % self.schema_name))
    super(TenantMixin, self).delete(*cursor, **kwargs)

dataset/ETHPy150Open tomturner/django-tenants/django_tenants/models.py TenantMixin.delete/VarMisuse@107/214 `args`->`cursor`