equal
deleted
inserted
replaced
16 return other_lang |
16 return other_lang |
17 |
17 |
18 def clean(self): |
18 def clean(self): |
19 """Form cleaner for accepting the terms and conditions. |
19 """Form cleaner for accepting the terms and conditions. |
20 """ |
20 """ |
21 cleaned_data = self.cleaned_data |
21 |
22 accept = cleaned_data.get('accept') |
22 data = self.data |
|
23 accept = data.get('accept') |
|
24 |
23 if not accept: |
25 if not accept: |
24 raise forms.ValidationError( |
26 raise forms.ValidationError( |
25 'You need to accept the terms and condition for uploading the data.') |
27 'You need to accept the terms and condition for uploading the data.') |
26 |
28 |
27 return cleaned_data |
29 return self.cleaned_data |
28 |
30 |
29 class Meta: |
31 class Meta: |
30 model = Participant |
32 model = Participant |