﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
33226	Add css class hooks to BaseForm	David Smith	nobody	"`Form` has a couple of hooks to add classes to a form. See [https://docs.djangoproject.com/en/3.2/ref/forms/api/#styling-required-or-erroneous-form-rows docs].

However, the [https://github.com/django/django/blob/551c997feaaa293987af8b05efc3634b93305fac/django/forms/forms.py#L54 `BaseForm`] does not have a class level initialisation of these. The classes are then later added via a `hasattr` check. 

I was wondering if class level defaults (`None`) should be added for these to make them more discovarable, also the `hasattr` logic can just be replaced with `Form.required_css_class`"	Uncategorized	closed	Uncategorized	3.2	Normal	duplicate			Unreviewed	0	0	0	0	0	0
