django-bootstrap-form
django-bootstrap-form copied to clipboard
'SafeText' object has no attribute 'visible_fields'
return render(element, markup_classes)
File "XXXXXXX/lib/python2.7/site-packages/bootstrapform/templatetags/bootstrap.py", line 74, in render for field in element.visible_fields(): AttributeError: 'SafeText' object has no attribute 'visible_fields'
this generally means that the form field does not exist or is broken and django's template engine translates this into an empty string. assuming that you are trying something like {{form.brokenfield|bootstrap}}. Does {{form.brokenfield}} work?
Same error but with:
'str' object has no attribute 'visible_fields'