def check_query_object_type(self, value, opts, field):
        if hasattr(value, '_meta'):
            if not check_rel_lookup_compatibility(value._meta.model, opts, field):
                raise ValueError(
                    'Cannot query "%s": Must be "%s" instance.' %
                    (value, opts.object_name))
Get the contact's first Email address. returns just the email address.
dataset/ETHPy150Open django/django/django/db/models/sql/query.py/Query.check_query_object_type--crossover with--dataset/ETHPy150Open Narcolapser/python-o365/O365/contact.py/Contact.getFirstEmailAddress