'Translate model property to datastore value.'

def get_value_for_datastore(self, model_instance):

    blob_info = super(BlobReferenceProperty, self).get_value_for_datastore(model_instance)
    if (blob_info is None):
        return None
    return blob_info.key()
