def as_page(self):
    content = json.loads(self.content_json)
    page_model = ContentType.objects.get_for_id(content['content_type']).model_class()
    page = page_model.from_json(self.content_json)
    page.pk = content['pk']
    return page
def as_page(self):
    content = json.loads(self.content_json)
    page_model = ContentType.objects.get_for_id(content['content_type']).model_class()
    page = page_model.from_json(self.content_json)
    page.pk = content['pk']
    return page