From e3f24620b9a69f1eb0652a9ffec2c2c3d6a10b8e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20St=C4=99pniowski?= Date: Tue, 16 Sep 2008 21:33:35 +0200 Subject: [PATCH] Fixed links for showing fragments in book text. --- apps/catalogue/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/catalogue/models.py b/apps/catalogue/models.py index 2a9387300..7f6268fdb 100644 --- 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 '%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',) -- 2.20.1