From 35050cba1962e1c54995b565a9d39df32a9dc1df Mon Sep 17 00:00:00 2001 From: Greg Reinbach Date: Thu, 11 Jul 2013 16:27:52 -0400 Subject: [PATCH] wrap choices_start/end variables to better handle TEMPLATE_STRING_IF_INVALID is not set during testing of a project --- .../templates/bootstrap_toolkit/field_choices.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bootstrap_toolkit/templates/bootstrap_toolkit/field_choices.html b/bootstrap_toolkit/templates/bootstrap_toolkit/field_choices.html index d16556b..6faf9c7 100644 --- a/bootstrap_toolkit/templates/bootstrap_toolkit/field_choices.html +++ b/bootstrap_toolkit/templates/bootstrap_toolkit/field_choices.html @@ -1,5 +1,7 @@ {% load bootstrap_toolkit %} -{{ choices_start }} +{% if choices_start %} + {{ choices_start }} +{% endif %} {% for choice_id, choice_label in field.field.choices %}