'After the base save() method finishes, fire the COURSE_CERT_AWARDED
signal iff we are saving a record of a learner passing the course.'

def save(self, *args, **kwargs):

    super(GeneratedCertificate, self).save(*args, **kwargs)
    if CertificateStatuses.is_passing_status(self.status):
        COURSE_CERT_AWARDED.send_robust(sender=self.__class__, user=self.user, course_key=self.course_id, mode=self.mode, status=self.status)
