Refactor use ServiceOnOffForm

We no longer need a custom form object here – ServiceOnOffForm does the
same job of turning strings to booleans and back again.
This commit is contained in:
Chris Hill-Scott
2020-05-29 09:55:34 +01:00
parent cd398ab55c
commit 24f0b172f4
3 changed files with 8 additions and 18 deletions

View File

@@ -1719,16 +1719,6 @@ class ServiceDeliveryStatusCallbackForm(CallbackForm):
)
class InternationalSMSForm(StripWhitespaceForm):
enabled = RadioField(
'Send text messages to international phone numbers',
choices=[
('on', 'On'),
('off', 'Off'),
],
)
class SMSPrefixForm(StripWhitespaceForm):
enabled = RadioField(
'',