fnp
/
audio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add admin links
[audio.git]
/
apps
/
archive
/
templatetags
/
tags.py
diff --git
a/apps/archive/templatetags/tags.py
b/apps/archive/templatetags/tags.py
index
25389ef
..
1067a4d
100755
(executable)
--- a/
apps/archive/templatetags/tags.py
+++ b/
apps/archive/templatetags/tags.py
@@
-4,7
+4,13
@@
register = template.Library()
@register.inclusion_tag('archive/tags/multiple_tags_table.html')
def multiple_tags_table(tags, table=True):
@register.inclusion_tag('archive/tags/multiple_tags_table.html')
def multiple_tags_table(tags, table=True):
- return locals()
+ new_tags = {}
+ for k, v in tags.items():
+ if isinstance(v, list):
+ new_tags[k] = v
+ else:
+ new_tags[k] = [v]
+ return {"tags": new_tags, "table": table}
@register.inclusion_tag('archive/tags/tags_table.html')
@register.inclusion_tag('archive/tags/tags_table.html')