How OuterRef works in django?

Viewed 871

Im not able to understand how really OuterRef in django ORM works. For example:

    Table.objects.filter(field=OuterRef("pk"))

What does this mean? What role does field and pk play here and how it affects the final queryset? Someone please elaborate. Thanks in advance.

0 Answers
Related