Closed javierwilson closed 10 years ago
When using ListView.as_view {% video item.video 'small' %} I get: expected string or buffer in embed_video/backends.py in is_valid, line 144
It only works if I get the string value first, for example: {% video item.video|default_if_none:"" 'small' %}
It will be fixed in next version.
Better quickfix than using default_if_none is a simple condition:
default_if_none
{% if item.video %} {% video item.video 'small' %} {% endif %}
When using ListView.as_view {% video item.video 'small' %} I get: expected string or buffer in embed_video/backends.py in is_valid, line 144
It only works if I get the string value first, for example: {% video item.video|default_if_none:"" 'small' %}