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

add_class appending a new class in every refresh #28

Open
hannonq opened this issue Dec 5, 2015 · 0 comments
Open

add_class appending a new class in every refresh #28

hannonq opened this issue Dec 5, 2015 · 0 comments

Comments

@hannonq
Copy link

hannonq commented Dec 5, 2015

I don't know if I'm doing something stupid, but when I use
{{ user_form.password1|add_class:"form-control pull-right" }} ,
a new "form-control pull-right" is added to the HTML output every time I refresh the page, so eventually I get something like

<input class="form-control pull-right form-control pull-right form-control pull-right form-control pull-right form-control pull-right ... />

Any ideas?

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

1 participant