diff --git a/kfet/forms.py b/kfet/forms.py index d2b0cfef..acab8df6 100644 --- a/kfet/forms.py +++ b/kfet/forms.py @@ -55,6 +55,11 @@ class AccountForm(forms.ModelForm): } class AccountTriForm(AccountForm): + + def clean_trigramme(self): + trigramme = self.cleaned_data['trigramme'] + return trigramme.upper() + class Meta(AccountForm.Meta): fields = ['trigramme']