move sqlalchemy defaults from booleans to SQL constructs

booleans aren't actually allowed, and quietly do nothing

also default Services.active to true
This commit is contained in:
Leo Hemsted
2016-10-31 18:14:29 +00:00
parent bec20d3854
commit da2fa5b4bc
5 changed files with 33 additions and 25 deletions

View File

@@ -139,7 +139,7 @@ def sample_service(notify_db,
data = {
'name': service_name,
'message_limit': limit,
'active': False,
'active': True,
'restricted': restricted,
'email_from': email_from,
'created_by': user