'Return "regenerated" if record corresponds to Certificate Regeneration task, otherwise returns \'generated\''

def get_task_name(self):

    return (_('regenerated') if self.is_regeneration else _('generated'))
