@register.filter
def has_unrendered_errors(bound_field):
 return (bound_field.errors and (not hasattr(bound_field.field.widget, u'render_with_errors')))

@ register . filter def has_unrendered_errors ( bound_field ) : return ( bound_field . errors and ( not hasattr ( bound_field . field . widget , u'render_with_errors' ) ) )
return true if this field has errors that were not accounted for by render_with_errors .