[Answer]-Create string of multiple objects

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])

Leave a comment