django qury set return fields of foreign keys 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)