forked from DGNum/gestioCOF
Fix account create majuscule trigramme
This commit is contained in:
parent
9236ab0a77
commit
4d75424a81
1 changed files with 5 additions and 0 deletions
|
@ -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']
|
||||
|
||||
|
|
Loading…
Reference in a new issue