formats.append(u'<a href="%s">Plik PDF</a>' % self.pdf_file.url)
if self.odt_file:
formats.append(u'<a href="%s">Plik ODT</a>' % self.odt_file.url)
+ if self.odt_file:
+ formats.
self._short_html = unicode(render_to_string('catalogue/book_short.html',
{'book': self, 'tags': tags, 'formats': formats}))
raise Book.AlreadyExists('Book %s already exists' % book_slug)
book.title = book_info.title
+ book._short_html = ''
book.save()
book_tags = []