Permalink
Browse files

Removes Footnote.__unicode__() (AbstractText.__unicode__ is almost th…

…e same).
  • Loading branch information...
1 parent cd636b9 commit 7dd933d2c0200c26c1a79e3d73a2d970e256a7d1 @BertrandBordage committed Aug 29, 2012
Showing with 0 additions and 5 deletions.
  1. +0 −5 cmsplugin_footnote/models.py
@@ -3,8 +3,6 @@
from cms.plugins.text.models import AbstractText
from django.db.models import CharField
from django.utils.translation import ugettext_lazy as _
-from django.template.defaultfilters import truncatewords_html
-from django.utils.html import strip_tags
from .utils import get_cache_key
from django.core.cache import cache
@@ -17,9 +15,6 @@ class Meta:
verbose_name = _('Footnote')
verbose_name_plural = _('Footnotes')
- def __unicode__(self):
- return strip_tags(truncatewords_html(self.body, 5))
-
def save(self, *args, **kwargs):
super(Footnote, self).save(*args, **kwargs)
placeholder, page = self.placeholder, self.placeholder.page

0 comments on commit 7dd933d

Please sign in to comment.