fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Basic crowdfunding.
[wolnelektury.git]
/
apps
/
catalogue
/
models
/
collection.py
diff --git
a/apps/catalogue/models/collection.py
b/apps/catalogue/models/collection.py
index
1c9027c
..
daee484
100644
(file)
--- a/
apps/catalogue/models/collection.py
+++ b/
apps/catalogue/models/collection.py
@@
-23,3
+23,7
@@
class Collection(models.Model):
def __unicode__(self):
return self.title
+
+ @models.permalink
+ def get_absolute_url(self):
+ return ("collection", [self.slug])