def save(self, *args, **kwargs):
    self.key = code_generator()
    super(ActivationProfile, self).save(*args, **kwargs)
def save(self, *args, **kwargs):
    self.key = code_generator()
    super(ActivationProfile, self).save(*args, **kwargs)