]> git.parisson.com Git - teleforma.git/commitdiff
remove fake message from seminar linked to conference
authorYoan Le Clanche <yoanl@pilotsystems.net>
Thu, 11 Mar 2021 11:04:51 +0000 (12:04 +0100)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Thu, 11 Mar 2021 11:04:51 +0000 (12:04 +0100)
teleforma/management/commands/teleforma-export-avis.py

index 9359a6c221f244a38715779ef3354ece9788cda1..cff0e699497dd806c02252455b0a760d81a37993 100644 (file)
@@ -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: