Only create uppercase EXCges
This commit is contained in:
parent
bb969c7ee0
commit
ac59a532c4
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in New Issue