From ec3ed54f52c0551fab881e2fa6009cdd6469559f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20St=C4=99pniowski?= Date: Sat, 13 Sep 2008 09:45:49 +0200 Subject: [PATCH] Added TXT format to books. --- apps/catalogue/models.py | 3 ++- wolnelektury/templates/catalogue/book_detail.html | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/catalogue/models.py b/apps/catalogue/models.py index db194347e..d8565c4bc 100644 --- a/apps/catalogue/models.py +++ b/apps/catalogue/models.py @@ -78,9 +78,10 @@ class Book(models.Model): # Formats xml_file = models.FileField(_('XML file'), upload_to='books/xml', blank=True) + html_file = models.FileField(_('HTML file'), upload_to='books/html', blank=True) pdf_file = models.FileField(_('PDF file'), upload_to='books/pdf', blank=True) odt_file = models.FileField(_('ODT file'), upload_to='books/odt', blank=True) - html_file = models.FileField(_('HTML file'), upload_to='books/html', blank=True) + txt_file = models.FileField(_('TXT file'), upload_to='books/txt', blank=True) parent = models.ForeignKey('self', blank=True, null=True, related_name='children') diff --git a/wolnelektury/templates/catalogue/book_detail.html b/wolnelektury/templates/catalogue/book_detail.html index 95c2c3e87..22c09cb13 100644 --- a/wolnelektury/templates/catalogue/book_detail.html +++ b/wolnelektury/templates/catalogue/book_detail.html @@ -39,14 +39,17 @@ {% endif %}
-- 2.20.1