'save the certificate template asset'

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

    if (self.pk is None):
        asset_image = self.asset
        self.asset = None
        super(CertificateTemplateAsset, self).save(*args, **kwargs)
        self.asset = asset_image
    super(CertificateTemplateAsset, self).save(*args, **kwargs)
