diff --git a/contest/forms.py b/contest/forms.py index 96d7dfa..5f3c1f7 100644 --- a/contest/forms.py +++ b/contest/forms.py @@ -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")