Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'SafeText' object has no attribute 'visible_fields' #87

Open
benedictchen opened this issue Jul 27, 2016 · 2 comments
Open

'SafeText' object has no attribute 'visible_fields' #87

benedictchen opened this issue Jul 27, 2016 · 2 comments

Comments

@benedictchen
Copy link

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'

@Juanka7557
Copy link

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?

@zelds
Copy link

zelds commented Sep 7, 2018

Same error but with:
'str' object has no attribute 'visible_fields'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants