Commit 7faa62c7 by McKenzie Welter Committed by McKenzie Welter

logical grouping fix

parent 17e22d62
......@@ -53,7 +53,7 @@ class Benefit(AbstractBenefit):
"""" Filters out products that aren't seats or entitlements or that don't have a paid certificate type. """
return [
line for line in lines
if line.product.is_seat_product or line.product.is_course_entitlement_product and
if (line.product.is_seat_product or line.product.is_course_entitlement_product) and
hasattr(line.product.attr, 'certificate_type') and
line.product.attr.certificate_type.lower() in applicable_range.course_seat_types
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment