fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4e0b56a
)
Fixed links for showing fragments in book text.
author
Marek Stępniowski
<marek@stepniowski.com>
Tue, 16 Sep 2008 19:33:35 +0000
(21:33 +0200)
committer
Marek Stępniowski
<marek@stepniowski.com>
Tue, 16 Sep 2008 19:33:35 +0000
(21:33 +0200)
apps/catalogue/models.py
patch
|
blob
|
history
diff --git
a/apps/catalogue/models.py
b/apps/catalogue/models.py
index
2a93873
..
7f6268f
100644
(file)
--- a/
apps/catalogue/models.py
+++ b/
apps/catalogue/models.py
@@
-248,7
+248,7
@@
class Fragment(models.Model):
return mark_safe(self._short_html)
def get_absolute_url(self):
return mark_safe(self._short_html)
def get_absolute_url(self):
- return '%s#m%s' % (
self.book.html_file.url
, self.anchor)
+ return '%s#m%s' % (
reverse('book_text', kwargs={'slug': self.book.slug})
, self.anchor)
class Meta:
ordering = ('book', 'anchor',)
class Meta:
ordering = ('book', 'anchor',)