From: Yoan Le Clanche Date: Thu, 11 Mar 2021 11:04:51 +0000 (+0100) Subject: remove fake message from seminar linked to conference X-Git-Tag: 2.8.1-pro~164 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=f3fc06825b53dfc7d3013fc78b81625f94b6175b;p=teleforma.git remove fake message from seminar linked to conference --- diff --git a/teleforma/management/commands/teleforma-export-avis.py b/teleforma/management/commands/teleforma-export-avis.py index 9359a6c2..cff0e699 100644 --- a/teleforma/management/commands/teleforma-export-avis.py +++ b/teleforma/management/commands/teleforma-export-avis.py @@ -79,7 +79,9 @@ class Command(BaseCommand): cart = some_cart if not cart: cart_not_found.append(user) - self.log("Can't find cart for testimonial %d and user %s" % (testimonial.id, str(user))) + # if this is a seminar linked to a conference, it's normal we don't find it in the cart + if not testimonial.seminar.conference: + self.log("Can't find cart for testimonial %d and user %s" % (testimonial.id, str(user))) continue if not testimonial.seminar.product_code: