Commit c50dc417 by Michael LoTurco

Update models.py

parent cda23bc0
......@@ -1092,7 +1092,7 @@ class Program(TimeStampedModel):
@property
def entitlements(self):
applicable_seat_types = set(seat_type.name for seat_type in self.type.applicable_seat_types.all())
applicable_seat_types = set(seat_type.slug for seat_type in self.type.applicable_seat_types.all())
return CourseEntitlement.objects.filter(mode__name__in=applicable_seat_types, course__in=self.courses.all())
@property
......
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