Answer the question
In order to leave comments, you need to log in
How to implement multiple relationships between models in Django?
Tell me how to implement a connection between one model and several others.
I have
Carrier
carrier_id
name
Partner
partner_id
carrier_id
name
Company
company_id
partner_id
name
Administrator
entity_type (Сarrier, Partner, Company)
email
Answer the question
In order to leave comments, you need to log in
Either through inheritance of models from a common root, or through generalized relations .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question