Add rate_limit and message_limit to SerialisedService

The API needs these to check whether a service can send a notification.
This commit also updates all the tests in `test_validators.py` to take
a serialised service, not a database object.
This commit is contained in:
Chris Hill-Scott
2020-06-26 13:38:58 +01:00
parent 1f315b06e2
commit 9f41e77bf7
2 changed files with 62 additions and 22 deletions

View File

@@ -120,7 +120,9 @@ class SerialisedService(SerialisedModel):
'active',
'contact_link',
'email_from',
'message_limit',
'permissions',
'rate_limit',
'research_mode',
'restricted',
}