Example #1
0
 def save(self, *args, **kwargs):
     if self.extended_content:
         self.extended_content_html = render(self.extended_content, self.language)
     self.basic_content_html = render(self.basic_content, self.language)
     self.title_html = ent_replace(self.title, self.language)
     self.heading_html = ent_replace(self.heading, self.language)
     super(EntryTranslation, self).save(*args, **kwargs)
Example #2
0
 def save(self, *args, **kwargs):
     if self.extended_content:
         self.extended_content_html = render(self.extended_content,
                                             self.language)
     self.basic_content_html = render(self.basic_content, self.language)
     self.title_html = ent_replace(self.title, self.language)
     self.heading_html = ent_replace(self.heading, self.language)
     super(EntryTranslation, self).save(*args, **kwargs)
Example #3
0
 def save(self, *args, **kwargs):
     self.content_html = render(self.content, self.language)
     self.title_html = ent_replace(self.title, self.language)
     self.heading_html = ent_replace(self.heading, self.language)
     super(PageTranslation, self).save(*args, **kwargs)