mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 02:42:26 -05:00
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:
@@ -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')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user