def set_translatable_content(self, fields):
        for field, value in fields.items():
            setattr(self, field, value)
        self.save()
        return all(getattr(self, field) == value
                   for field, value in fields.items())
dataset/ETHPy150Open divio/django-cms/cms/models/pluginmodel.py/CMSPlugin.set_translatable_content/original