[Fixed]-Can I use Prefetch_related to prefetch more than just one model?

1👍

Yes, just add comments between the entries.

I have never used the Prefetch object before, Just use prefetch_related as follows:

soproduct = SOproduct.objects.select_related('product__material').prefetch_related(
                 'product__material__bomversion_set',
                 'second_table',
                 'third_table__fourth_table'
                  )

Leave a comment