Fixed a bug in a form clean method.

- Legacy-Id: 15210
This commit is contained in:
Henrik Levkowetz 2018-06-04 15:31:37 +00:00
parent 816f5de566
commit eaff1f0825

View file

@ -152,6 +152,7 @@ def get_person_form(*args, **kwargs):
consent = self.cleaned_data.get('consent')
if consent == False:
raise forms.ValidationError("In order to modify your profile data, you must permit the IETF to use the uploaded data.")
return consent
return PersonForm(*args, **kwargs)