fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
90f3cd6
)
Added "Plik TXT" to shortcuts in book_short.html.
author
Marek Stępniowski
<marek@stepniowski.com>
Thu, 18 Sep 2008 15:02:31 +0000
(17:02 +0200)
committer
Marek Stępniowski
<marek@stepniowski.com>
Thu, 18 Sep 2008 15:02:31 +0000
(17:02 +0200)
apps/catalogue/models.py
patch
|
blob
|
history
diff --git
a/apps/catalogue/models.py
b/apps/catalogue/models.py
index
30131bd
..
9640e7f
100644
(file)
--- a/
apps/catalogue/models.py
+++ b/
apps/catalogue/models.py
@@
-111,8
+111,8
@@
class Book(models.Model):
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)
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.
od
t_file:
- formats.
+ if self.
tx
t_file:
+ formats.
append(u'<a href="%s">Plik TXT</a>' % self.txt_file.url)
self._short_html = unicode(render_to_string('catalogue/book_short.html',
{'book': self, 'tags': tags, 'formats': formats}))
self._short_html = unicode(render_to_string('catalogue/book_short.html',
{'book': self, 'tags': tags, 'formats': formats}))