Example #1
0
    def validate_secondary_email(self, value):
        secondary_email = value

        if secondary_email:
            validators.email(secondary_email)

        return value
Example #2
0
    def validate_secondary_email(self, value):
        secondary_email = value

        if secondary_email:
            validators.email(secondary_email)

        return value
Example #3
0
    def validate_secondary_email(self, attrs, source):
        secondary_email = attrs.get(source)

        if secondary_email:
            validators.email(secondary_email)

        return attrs
Example #4
0
    def validate_secondary_email(self, attrs, source):
        secondary_email = attrs.get(source)

        if secondary_email:
            validators.email(secondary_email)

        return attrs
Example #5
0
    def validate_primary_email(self, value):
        primary_email = value

        validators.email(primary_email)

        return value
Example #6
0
    def validate_primary_email(self, value):
        primary_email = value

        validators.email(primary_email)

        return value
Example #7
0
    def validate_primary_email(self, attrs, source):
        primary_email = attrs[source]

        validators.email(primary_email)

        return attrs
Example #8
0
    def validate_primary_email(self, attrs, source):
        primary_email = attrs[source]

        validators.email(primary_email)

        return attrs