def get_value(self, model):
        value = self.property_type.get_value_for_datastore(model)
        # for dynamic props, this is still sometimes the referenced object
        # and not the key
        if(value and (not isinstance(value, self.get_data_type()))):
            value = value.key()
        return value
Returns the key of the referenced model instance.
dataset/ETHPy150Open jahlborn/appengine-rest-server/src/main/python/rest/__init__.py/BaseReferenceHandler.get_value