]> git.parisson.com Git - teleforma.git/commitdiff
mv filter to teleforma
authoryomguy <yomguy@parisson.com>
Wed, 6 Jun 2012 11:13:28 +0000 (13:13 +0200)
committeryomguy <yomguy@parisson.com>
Wed, 6 Jun 2012 11:13:28 +0000 (13:13 +0200)
teleforma/templates/teleforma/inc/conference_list.html
teleforma/templates/teleforma/inc/document_list.html
teleforma/templates/teleforma/inc/media_list.html
teleforma/templatetags/teleforma_tags.py

index 2be4be3756b13d173d60c96e67ddd71d2242ab32..8b01e3d5cf6f85b6fb854c190e0ea5f9e8bec306 100644 (file)
@@ -1,4 +1,4 @@
-{% load telemeta_utils %}
+{% load teleforma_tags %}
 {% load i18n %}
 
 {% if course.conference.all|from_type:type %}
index 14867b5052025da56d838e32b96adf147107435d..5b118be49f8782ac43e1aeefff8aa29d46761d02 100644 (file)
@@ -1,4 +1,4 @@
-{% load telemeta_utils %}
+{% load teleforma_tags %}
 {% load i18n %}
 
 {% if course.document.all|from_type:type %}
index 0566a14ac8d67d11b248ea96aaf6d358230d54b3..b54fb389b4590c9d1a4a4dae712e19c7c2d1e2fa 100644 (file)
@@ -1,4 +1,4 @@
-{% load telemeta_utils %}
+{% load teleforma_tags %}
 {% load i18n %}
 
 {% if course.media.all|from_type:type %}
index 2c0ad4eb47bd491ae73edd7a481546ed3cc8aa4f..184e9aee50d6118bf266e8562d30fe393118e91d 100644 (file)
@@ -98,3 +98,7 @@ def yes_no(bool):
         return _('Yes')
     else:
         return _('No')
+
+@register.filter
+def from_type(docs, type):
+    return docs.filter(course_type=type)