Allow platform admins to change daily message limit

One less thing we have to go into the database to do, and remember to
manually clear the cache for after.
This commit is contained in:
Chris Hill-Scott
2020-10-19 17:19:32 +01:00
parent e5de00e0ce
commit 268929a093
6 changed files with 109 additions and 3 deletions

View File

@@ -1174,6 +1174,15 @@ class FreeSMSAllowance(StripWhitespaceForm):
)
class MessageLimit(StripWhitespaceForm):
message_limit = GovukIntegerField(
'Number of messages the service is allowed to send each day',
validators=[
DataRequired(message='Cannot be empty')
]
)
class ConfirmPasswordForm(StripWhitespaceForm):
def __init__(self, validate_password_func, *args, **kwargs):
self.validate_password_func = validate_password_func