[Answered ]-Django: two-step RelatedManager

1👍

You don’t need a manager. This will do it:

Three.objects.filter(two__one=one)

1👍

You can use the reverse relationship. You can use the lower case name of the related model, in your case two and three eg:

one_tow_three = One.objects.all().values('two','two__three')
👤Pannu

Leave a comment