from dsfr.forms import DsfrBaseForm


class AidesTerrBaseForm(DsfrBaseForm):
    # Subclassing the Dsfr base form to set autofocus on the first error found when applicable

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.set_autofocus_on_first_error()
