dyve/django-bootstrap-toolkit — pull request #21 by samdolan (2012-06-11 16:12:14+00:00)
Title: Don't blow up if an empty context variable is passed to `as_bootstrap`

If the template code basses in an empty context variable, the
`bootstrap_input_type` templatetag throws a ValueError that's difficult
to debug. This patch changes the template tag to just show an empty
string (or whatever is defined in TEMPLATE_STRING_IF_INVALID), so the
debugging can be done at the rendering level.