'returns total seats purchases using coupon codes'

@classmethod
def get_total_coupon_code_purchases(cls, course_id):

    return cls.objects.filter(order__status='purchased', coupon__course_id=course_id).aggregate(Count('coupon'))
