from django.contrib.contenttypes import generic
from django.conf import settings
-from librarian import text
from catalogue.fields import JSONField
from catalogue.models import Book, Tag
@classmethod
def for_book(cls, book, length=3):
+ from librarian import text
+
# count from this book only
output = StringIO()
f = open(book.xml_file.path)