jazzband / django-redshift-backend

Redshift database backend for Django
Apache License 2.0
83 stars 47 forks source link

Add support for django tenants integration #157

Open onGranot opened 2 months ago

onGranot commented 2 months ago

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

Problem

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

onGranot commented 2 months ago

I have a working base.py optional override using a django setting that I could share, if you want to give me permissions to open a PR.

shimizukawa commented 2 months ago

@onGranot Thank you for your contribution! I think anyone can create PR, so please give it a try. Actually, I have never given individual permission to create PR.