コード例 #1
0
 def save(self, *args, **kwargs):
     self.description_html = markdown.compile(self.description)
     ret = super().save(*args, **kwargs)
     Version.recalculate_ordering_ids_for_project(self.project)
     return ret
コード例 #2
0
 def save(self, *args, **kwargs):
     self.html = markdown.compile(self.content, context={
                                  'namespace': self.project.namespace.name, 'project': self.project.name, 'page': self.slug})
     self.slug = slugify(self.title)
     super(Page, self).save(*args, **kwargs)
コード例 #3
0
ファイル: models.py プロジェクト: gratimax/ore-old
 def save(self, *args, **kwargs):
     self.html = markdown.compile(self.content)
     self.slug = slugify(self.title)
     super(Page, self).save(*args, **kwargs)