@receiver(COURSE_CERT_AWARDED, sender=GeneratedCertificate)
def handle_course_cert_awarded(sender, user, course_key, **kwargs):
 if is_prerequisite_courses_enabled():
  fulfill_course_milestone(course_key, user)

@ receiver ( COURSE_CERT_AWARDED , sender = GeneratedCertificate ) def handle_course_cert_awarded ( sender , user , course_key , ** kwargs ) : if is_prerequisite_courses_enabled ( ) : fulfill_course_milestone ( course_key , user )
if programs is enabled and a learner is awarded a course certificate .