allow you to remove URL without removing bearer token

This commit is contained in:
Leo Hemsted
2018-07-06 11:47:35 +01:00
parent 7397e808a8
commit 4d4424657f
2 changed files with 4 additions and 4 deletions

View File

@@ -829,9 +829,7 @@ class ServiceInboundNumberForm(StripWhitespaceForm):
class CallbackForm(StripWhitespaceForm):
def validate(self):
return super().validate() or (
self.url.data == '' and self.bearer_token.data == ''
)
return super().validate() or self.url.data == ''
class ServiceReceiveMessagesCallbackForm(CallbackForm):