Skip to content

Instantly share code, notes, and snippets.

Last active Mar 21, 2019
What would you like to do?
for offer in basket.offer_set.published().exclude(ticket_price__state=13):
_voucher_ids = list(offer.ticket_price.ticket_vouchers_multiple.all().values_list('id', flat=True))
if (offer.ticket_price.ticket_voucher and offer.ticket_price.ticket_voucher != ticket_price) or (_voucher_ids and not in _voucher_ids):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment