mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-04 05:31:44 -04:00
Working service integration.
This commit is contained in:
@@ -169,8 +169,8 @@ class AddServiceForm(Form):
|
||||
name = StringField('Service Name', validators=[
|
||||
DataRequired(message='Service name can not be empty')])
|
||||
|
||||
def validate_service_name(self, a):
|
||||
if self.service_name.data in self._names_func():
|
||||
def validate_name(self, a):
|
||||
if a.data in self._names_func():
|
||||
raise ValidationError('Service name already exists')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user