def set_or_create_content(self, page, language, ctype, body):
        try:
            content = self.filter(page=page, language=language,
                                  type=ctype).latest('creation_date')
            content.body = body
        except self.model.DoesNotExist:
            content = self.model(page=page, language=language, body=body,
                                 type=ctype)
        content.save()
        return content
Set or create a :class:`Content <pages.models.Content>` for a
dataset/ETHPy150Open batiste/django-page-cms/pages/managers.py/ContentManager.set_or_create_content