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

'unicode' object has no attribute 'visible_fields' #29

Closed
andresazp opened this issue Sep 3, 2013 · 2 comments
Closed

'unicode' object has no attribute 'visible_fields' #29

andresazp opened this issue Sep 3, 2013 · 2 comments

Comments

@andresazp
Copy link

I'm getting error: 'unicode' object has no attribute 'visible_fields'

Exception Type: AttributeError
Exception Value:
'unicode' object has no attribute 'visible_fields'
Exception Location: /Users/nano/code/turpial/kooshi/kenv/lib/python2.7/site-packages/bootstrapform/templatetags/bootstrap.py in render, line 74

Do you know how could it be fixed?

@andyen
Copy link

andyen commented Sep 3, 2013

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?

@andresazp
Copy link
Author

Andreas, thanks for replying.
Yes, the fields work wihout the filter, however I now discovered that I was using the app incorrectly, including the {{form.field.label}}{{form.field.errors}} with {{form.field | bootstrap}} which would not make much sense. Now it works as expected

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

2 participants