def __enter__(self):
        self._previous_tenant = connection.tenant
        self.activate()
Syntax sugar which helps in celery tasks, cron jobs, and other scripts
dataset/ETHPy150Open tomturner/django-tenants/django_tenants/models.py/TenantMixin.__enter__