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

Generic cross tables dont play nice with django #108

Open
miketynes opened this issue Apr 19, 2021 · 0 comments
Open

Generic cross tables dont play nice with django #108

miketynes opened this issue Apr 19, 2021 · 0 comments

Comments

@miketynes
Copy link
Collaborator

miketynes commented Apr 19, 2021

Question from @vshekar: do we want property_x to have a generic foreign key?
Potential answer: no -- having one property_x minimizes effort from a psql implementation perspective but not from a django perspective. aside from minimizing effort, we cant think of any advantages

One way to do this in django: https://stackoverflow.com/questions/54217937/how-to-bind-multiple-models-to-one-manytomanyfield

Opinion piece on why not to do this in django: https://lukeplant.me.uk/blog/posts/avoid-django-genericforeignkey/

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

1 participant