1👍
✅
You can do the first three statements you are already doing. Then join the array of intermediate results returned by looping over the queryset resulting from the first three statements:
', '.join(['%s - %s' % (a.product, a.quantity) for a in bp])
Source:stackexchange.com