fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Passing for Django 1.11.
[wolnelektury.git]
/
src
/
catalogue
/
models
/
book.py
diff --git
a/src/catalogue/models/book.py
b/src/catalogue/models/book.py
index
b2289f6
..
923a604
100644
(file)
--- 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):
@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)
def gallery_path(self):
return gallery_path(self.slug)