fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cosmetic funding changes.
[wolnelektury.git]
/
apps
/
picture
/
models.py
diff --git
a/apps/picture/models.py
b/apps/picture/models.py
index
1e27ce6
..
c34b39a
100644
(file)
--- a/
apps/picture/models.py
+++ b/
apps/picture/models.py
@@
-9,7
+9,7
@@
from django.template.loader import render_to_string
from django.core.cache import get_cache
from catalogue.utils import split_tags
from django.utils.safestring import mark_safe
from django.core.cache import get_cache
from catalogue.utils import split_tags
from django.utils.safestring import mark_safe
-from slughifi import slughifi
+from
fnpdjango.utils.text.
slughifi import slughifi
from django.utils.translation import ugettext_lazy as _
from newtagging import managers
from django.utils.translation import ugettext_lazy as _
from newtagging import managers
@@
-148,7
+148,7
@@
class Picture(models.Model):
for tag in catalogue.models.Tag.objects.filter(category='author'):
pics_by_author[tag] = []
for tag in catalogue.models.Tag.objects.filter(category='author'):
pics_by_author[tag] = []
- for pic in pics:
+ for pic in pics
.iterator()
:
authors = list(pic.tags.filter(category='author'))
if authors:
for author in authors:
authors = list(pic.tags.filter(category='author'))
if authors:
for author in authors: