Check the uniqueness of the service name ignoring case.

When the service name changes the email_from changes to.
Renamed find_all_service_names to find_all_service_names_lower.
This commit is contained in:
Rebecca Law
2016-03-31 10:26:03 +01:00
parent ab50ed6368
commit 1871243cc8
7 changed files with 25 additions and 29 deletions

View File

@@ -159,7 +159,7 @@ class AddServiceForm(Form):
)
def validate_name(self, a):
if a.data in self._names_func():
if a.data.lower() in self._names_func():
raise ValidationError('This service name is already in use')