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

Allow new meta attribute 'using' for multiple database scenarios #39

Open
atkawa7 opened this issue Dec 14, 2018 · 1 comment
Open

Allow new meta attribute 'using' for multiple database scenarios #39

atkawa7 opened this issue Dec 14, 2018 · 1 comment

Comments

@atkawa7
Copy link

atkawa7 commented Dec 14, 2018

Django pgviews current fails to work with multiple databases. The issue is the connection get called with the default database but not the alternative one. To fix that I added a meta attribute 'using' then check that in the view sync runbacklog function
https://github.com/atkawa7/django-pgviews/commit/f73ca72cfa4ff3d3a038f5cbff28cce75478bd47
https://github.com/atkawa7/django-pgviews/commit/b6b45b65202ad0f7feeb02edf72f5e388ae8fa46

@mikicz
Copy link

mikicz commented Nov 22, 2021

My fork now this supports this as of version 0.8.0. See https://github.com/mikicz/django-pgviews and https://pypi.org/project/django-pgviews-redux/.

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

No branches or pull requests

2 participants