'Returns the first available e-mail'

def get_email(self):

    values = self.contactvalue_set.filter(field__field_type='email', value__isnull=False)
    if values:
        return values[0].value
    return ''
