-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
Django widget tweaks 'render_field' not working #60
Comments
Unfortunately, the last code snippet does not work with Django2.0.2 at all. :( |
Please try again using the latest release |
Just tried with latest django-widgets-improved (1.5.0) with
Didn't work either: |
use add_error_class instead of if-else https://github.com/jazzband/django-widget-tweaks#add_error_class |
I have this form rendering template in django, and
render_field
is not working insideif-else
:And it renders this:
But when I try a smaller version of the above code like following, then also it still doesn't work:
And renders this:
But when I remove all
if-else
's:Then it renders correctly:
But I need the if-else's to check for form errors and add error messages to form accordingly, will appreciate any help. So why is
render_field
not working withif-else
? How to resolve this ? Any other ways to use widget_tweaks to render error ?The text was updated successfully, but these errors were encountered: