Previously the duplication check would work case sensitive, so the same
email could be used twice with different spellings. This caused
duplicate registrations due to lack of verification by the people who
registered.
return newval
def clean_email(self):
- e = self.cleaned_data.get('email')
+ e = self.cleaned_data.get('email').lower()
try:
r = ConferenceRegistration.objects.get(email=e, conference=self.instance.conference)
if r.id != self.instance.id:
super(NewMultiRegForm, self).__init__(*args, **kwargs)
def clean_email(self):
- e = self.cleaned_data.get('email')
+ e = self.cleaned_data.get('email').lower()
if ConferenceRegistration.objects.filter(conference=self.conference, email=e).exists():
raise ValidationError("A registration for this email address already exists. For privacy reasons, management of a registration cannot be transferred.")