| 20 | disable_auth = forms.BooleanField(label=_("Disable TCU authentication"), required=False) |
| 21 | force_soc_display = forms.BooleanField(label=_("Show calculated battery percentage"), required=False) |
| 22 | hmac_key = forms.RegexField(label=_("HMAC Key"), max_length=32, required=False, regex=r"^([0-9a-fA-F])+") |
| 23 | |
| 24 | class Step0Form(forms.Form): |
| 25 | tcu_type = forms.ChoiceField(label="TCU Type", choices=TCU_TYPE) |
| 26 | default_color = forms.ChoiceField(label="Default Color", required=False, choices=CAR_COLOR) |
| 27 | |
| 28 | class Step2Form(forms.Form): |
| 29 | unit_id = forms.CharField(label="Unit ID", max_length=32, required=True, strip=True, min_length=5) |