Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for django tenants integration #157

Open
onGranot opened this issue Sep 24, 2024 · 2 comments · May be fixed by #158
Open

Add support for django tenants integration #157

onGranot opened this issue Sep 24, 2024 · 2 comments · May be fixed by #158

Comments

@onGranot
Copy link

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
@onGranot
Copy link
Author

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
Copy link
Member

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants