Answer the question
In order to leave comments, you need to log in
How to find relationship between tables/models?
The project has two models (tables), I want to filter the records of one model, according to the values of the other. The models are not directly related, there are a total of a thousand models in the project. How to find a connection between them?
Answer the question
In order to leave comments, you need to log in
We select the necessary tables in pycharm and build a diagram - only related models will fall into it and nothing more.
total in the project for a thousand modelsthis is hell. Stupidly sit down and make out connections. Perhaps visualization through https://django-extensions.readthedocs.io/en/latest... or other software that builds on the database will help, but there are doubts because of such a bunch of models.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question