New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expected string or buffer #24

javierwilson opened this Issue May 7, 2014 · 1 comment


None yet
2 participants

javierwilson commented May 7, 2014

When using ListView.as_view
{% video 'small' %}
I get: expected string or buffer in embed_video/ in is_valid, line 144

It only works if I get the string value first, for example:
{% video|default_if_none:"" 'small' %}

@yetty yetty added this to the v0.10 milestone May 7, 2014

@yetty yetty added the bug label May 7, 2014

@yetty yetty closed this in 43a6f22 May 7, 2014


This comment has been minimized.


yetty commented May 7, 2014

It will be fixed in next version.

Better quickfix than using default_if_none is a simple condition:

{% if %}
    {% video 'small' %}
{% endif %}

yetty added a commit that referenced this issue May 24, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment