S
S
sswwssww2020-09-18 18:04:10
Django
sswwssww, 2020-09-18 18:04:10

What is the best way to build relationships in Django models?

There are the following entities in the database:

Services : Youtube, Vkontakte, Instagram;
Categories: Views, Likes, Followers.
Goods : 1000 Youtube views, 100 Youtube subscribers, 1000 Vkontakte subscribers
What is the best way to organize links between them?
UPD:
The bottom line is this:
5f65af731dcbc137963852.jpeg
When you click on the Service , Categories should appear that can only apply to the selected Service , then click on the Category and Products appear that apply only to the selected Service + Categories .
It may be that two differentServices have a common Category .

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question