Skip to content

Add support for django tenants integration #157

@onGranot

Description

@onGranot

Subject: Supporting django-tenants from django-redshift-backend

Problem

  • We are using the django-tenants extension, which utilizes a schema-based tenant model. Currently queries will not set their search path to the tenant schema in the redshift backend.

Procedure to reproduce the problem

  1. Initialize a project with https://django-tenants.readthedocs.io/en/latest/
  2. Try to query django-redshift-backend on a specific tenant.

Expected results

An optional flag, when enabled the redshift backend will execute a set search path on the cursor.

Environment info

  • OS: Mac (local), Ubuntu (deployment)
  • Python version: 3.9.17
  • Django version: 4.0
  • Django-Redshift-Backend version: latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions