# HG changeset patch # User neko259 # Date 2015-10-27 20:15:41 # Node ID a552aeec8254b83dfc18daef94077bb31e5991e5 # Parent ecedb03a326d40f72d9ca57f220780e76d3bd4f4 Fixed import of truncatewords diff --git a/boards/models/post/__init__.py b/boards/models/post/__init__.py --- a/boards/models/post/__init__.py +++ b/boards/models/post/__init__.py @@ -6,6 +6,7 @@ from django.core.exceptions import Objec from django.core.urlresolvers import reverse from django.db import models from django.db.models import TextField, QuerySet +from django.template.defaultfilters import truncatewords, striptags from django.template.loader import render_to_string from django.utils import timezone