X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/5aa13410812d3fc4b35c039bdc3f0a2edc5185a1..b0b9c1f0f9f4cc0f5c4d00d913735ab6a81bf214:/src/catalogue/models/book.py?ds=inline diff --git a/src/catalogue/models/book.py b/src/catalogue/models/book.py index b2289f667..923a60485 100644 --- a/src/catalogue/models/book.py +++ b/src/catalogue/models/book.py @@ -205,12 +205,7 @@ class Book(models.Model): @permalink def get_absolute_url(self): - return 'catalogue.views.book_detail', [self.slug] - - @staticmethod - @permalink - def create_url(slug): - return 'catalogue.views.book_detail', [slug] + return 'book_detail', [self.slug] def gallery_path(self): return gallery_path(self.slug)