@register.filter
def as_uni_errors(form):
    if isinstance(form, BaseFormSet):
        template = get_template('uni_form/errors_formset.html')
        c = Context({'formset': form})
    else:
        template = get_template('uni_form/errors.html')
        c = Context({'form':form})
    return template.render(c)
ensure that a str object with an __iter__ method (like in
dataset/ETHPy150Open pydanny/django-uni-form/uni_form/templatetags/uni_form_filters.py/as_uni_errors--crossover with--dataset/ETHPy150Open zzzeek/sqlalchemy/test/base/test_utils.py/FlattenIteratorTest.test_str_with_iter