fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add support for fabfile_local.py
[wolnelektury.git]
/
apps
/
picture
/
models.py
diff --git
a/apps/picture/models.py
b/apps/picture/models.py
index
75ea4c3
..
5fc3722
100644
(file)
--- a/
apps/picture/models.py
+++ b/
apps/picture/models.py
@@
-380,5
+380,5
@@
class Picture(models.Model):
# copied from book.py, figure out
def related_themes(self):
- return catalogue.models.Tag.usage_for_queryset(
+ return catalogue.models.Tag.
objects.
usage_for_queryset(
self.areas.all(), counts=True).filter(category__in=('theme', 'thing'))