def clean_tos(self):
        if self.cleaned_data.get('tos', False):
            return self.cleaned_data['tos']
        raise forms.ValidationError(_(u'You must agree to the terms to register'))
Validate that the user accepted the Terms of Service.
dataset/ETHPy150Open davemerwin/blue-channel/external_apps/registration/forms.py/RegistrationFormTermsOfService.clean_tos