mypebble / django-pgviews

Fork of django-postgres that focuses on maintaining and improving support for Postgres SQL Views.
The Unlicense
195 stars 41 forks source link

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

Open atkawa7 opened 5 years ago

atkawa7 commented 5 years ago

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 commented 3 years ago

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