1👍
You need to return the value from your clean method.
def clean_email(self):
email = self.cleaned_data['email']
if not email.endswith('ac.uk'):
raise forms.ValidationError('You need to use ac ID')
return email
Source:stackexchange.com