@receiver(COURSE_CERT_AWARDED, sender=GeneratedCertificate)
def create_course_badge(sender, user, course_key, status, **kwargs):
 course_badge_check(user, course_key)

@ receiver ( COURSE_CERT_AWARDED , sender = GeneratedCertificate ) def create_course_badge ( sender , user , course_key , status , ** kwargs ) : course_badge_check ( user , course_key )
standard signal hook to create course badges when a certificate has been generated .