from newtagging.models import TagBase
from newtagging import managers
-from librarian import html
+from librarian import html, dcparser
TAG_CATEGORIES = (
odt_file = models.FileField(_('ODT file'), upload_to='books/odt', blank=True)
html_file = models.FileField(_('HTML file'), upload_to='books/html', blank=True)
+ parent = models.ForeignKey('self', blank=True, null=True)
+
objects = managers.ModelTaggedItemManager(Tag)
tags = managers.TagDescriptor(Tag)
def from_xml_file(xml_file):
from tempfile import NamedTemporaryFile
from slughifi import slughifi
- import dcparser
from markupstring import MarkupString
# Read book metadata