I have a form with checkboxes that works fine, but when the user submits the form with errors and my checkbox is checked I need to change div class which holds the checkbox. So
In models.py:
class Article: published = BooleanField() (...)
In the template: