From: Marek Stępniowski Date: Sat, 13 Sep 2008 07:45:49 +0000 (+0200) Subject: Added TXT format to books. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/ec3ed54f52c0551fab881e2fa6009cdd6469559f Added TXT format to books. --- 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 %}