from django.utils.translation import ugettext as _
from django.utils.safestring import mark_safe
from django.utils.html import strip_tags
from django.utils.translation import ugettext as _
from django.utils.safestring import mark_safe
from django.utils.html import strip_tags
def activate_revision(self, user, revision, extensions=['urlize']):
self.title = revision.title
self.tagnames = revision.tagnames
def activate_revision(self, user, revision, extensions=['urlize']):
self.title = revision.title
self.tagnames = revision.tagnames
super(Node, self).delete(*args, **kwargs)
def save(self, *args, **kwargs):
super(Node, self).delete(*args, **kwargs)
def save(self, *args, **kwargs):
if not self.id:
self.node_type = self.get_type()
super(BaseModel, self).save(*args, **kwargs)
if not self.id:
self.node_type = self.get_type()
super(BaseModel, self).save(*args, **kwargs)