-{% load telemeta_utils %}
+{% load teleforma_tags %}
{% load i18n %}
{% if course.conference.all|from_type:type %}
-{% load telemeta_utils %}
+{% load teleforma_tags %}
{% load i18n %}
{% if course.document.all|from_type:type %}
-{% load telemeta_utils %}
+{% load teleforma_tags %}
{% load i18n %}
{% if course.media.all|from_type:type %}
return _('Yes')
else:
return _('No')
+
+@register.filter
+def from_type(docs, type):
+ return docs.filter(course_type=type)