Hi, I was reading the form validation section here
https://docs.djangoproject.com/en/dev/ref/forms/validation/ and the very
first example is this code
from django import forms
from django.core.validators import validate_email
class MultiEmailField(forms.Field):
def to_python(self, value):
"Normalize data to a list of strings."
# Return an empty list if no input was given.
if not value:
return []
return value.split(',')
def validate(self, value):
"Check if value consists only of valid emails."
# Use the parent's handling of required fields, etc.
super(MultiEmailField, self).validate(value) #<---What is this?
for email in value:
validate_email(email)
so the validate function calls super(MultiEmailField,
self).validate(value) so essentially calls itself? Why? And how is this
not ending in infinite recursion?