def to_full_dict(self):
        from corehq.apps.locations.models import SQLLocation
        data = super(SupplyPointDisplayWrapper, self).to_full_dict()
        data.update({
            'location_type': None,
            'location_site_code': None,
            'location_parent_name': None,
        })
        try:
            location = SQLLocation.objects.get(location_id=self.case.location_id)
        except (SQLLocation.DoesNotExist, __HOLE__):
            pass
        else:
            data['location_type'] = location.location_type_name
            data['location_site_code'] = location.site_code
            if location.parent:
                data['location_parent_name'] = location.parent.name

        return data
dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/casexml/apps/case/templatetags/case_tags.py/SupplyPointDisplayWrapper.to_full_dict