def published(self):
return self.marked
+ @property
+ def html(self):
+ return self._as_markdown(self.body)
+
def save(self, *args, **kwargs):
old_options = self._original_state.get('extra', None)
@models.permalink
def get_absolute_url(self):
return ('static_page', (), {'path': self.extra['path']})
+
+ def activate_revision(self, user, revision, extensions=['urlize']):
+ self.title = revision.title
+ self.tagnames = revision.tagnames
+ self.body = revision.body
+
+ self.active_revision = revision
+ self.update_last_activity(user)
+
+ self.save()
class Meta(Node.Meta):
proxy = True
-
\ No newline at end of file
+