Fix account create majuscule trigramme

This commit is contained in:
Aurélien Delobelle 2016-09-03 16:41:02 +02:00
parent 9236ab0a77
commit 4d75424a81

View file

@ -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']