get queryset of foreign key field in code example
Example: how to get foregine kew field in models.py
items = CartItem.objects.select_related('product').filter(cart=cart)
items = CartItem.objects.select_related('product').filter(cart=cart)