Hi,
I was working on Ticket #29574 and i am trying to get list of all the models that are referencing to a model. Is there any inbuilt method to do so?
Thanks
Hi,
I was working on Ticket #29574 and i am trying to get list of all the models that are referencing to a model. Is there any inbuilt method to do so?
Thanks
Let suppose: if you are working with Django, you can use the get_all_related_models()
method to get a list of all the models that have a foreign key or many-to-many relationship with a particular model.