xelixdev / django-pgviews-redux

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

Fix ForeignKeys in views, make it possible to use a database alias for synchronisation #1

Closed si14 closed 3 years ago

si14 commented 4 years ago

Hey there!

This is a combination of https://github.com/mypebble/django-pgviews/pull/52/files and another fix that we use in production (ForeignKeys don't work properly with views unless deep copy is used on copied fields). Sorry for two things at once, but it'd just be nice to have it all upstreamed.

Paging @seroy who did both fixes.

mikicz commented 4 years ago

Hi, I think code looks good, but I would appreciate some tests to test the behaviour before pushing it out

mikicz commented 3 years ago

Implemented in https://github.com/mikicz/django-pgviews/pull/10