fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Cop notes.
[wolnelektury.git]
/
src
/
catalogue
/
templatetags
/
catalogue_tags.py
diff --git
a/src/catalogue/templatetags/catalogue_tags.py
b/src/catalogue/templatetags/catalogue_tags.py
index
b582f89
..
1a3e0aa
100644
(file)
--- a/
src/catalogue/templatetags/catalogue_tags.py
+++ b/
src/catalogue/templatetags/catalogue_tags.py
@@
-436,6
+436,11
@@
def license_icon(license_url):
}
+@register.simple_tag
+def license_locative(license_url, default):
+ return LICENSES.get(license_url, {}).get('locative', default)
+
+
@register.filter
def class_name(obj):
return obj.__class__.__name__