Only create uppercase EXCges

This commit is contained in:
Sebastian Lohff 2017-01-25 03:23:21 +01:00
parent bb969c7ee0
commit ac59a532c4
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class UpdateRefForm(forms.Form):
newRefName = forms.CharField(max_length=50, label="New Reference", help_text="Enter name of new ref, if we should create a new", required=False)
def clean_newRefName(self):
data = self.cleaned_data["newRefName"].strip()
data = self.cleaned_data["newRefName"].strip().upper()
if Reference.objects.filter(name=data).count() > 0:
raise forms.ValidationError("Reference already exists")