我正在尝试从 db.ListProperty(long) 列表中删除 long 类型的列表项。
class UploadHandler(blobstore_handlers.BlobstoreUploadHandler):
def post(self):
bla
def _removeLotFromAuction(self,lot):
auction = Auction.get_by_id(long(lot.auctionID))
logging.info(len(auction.lots))#1
auction.lots.remove(long(lot.lotID))
auction.put()
logging.info(len(auction.lots))#0
然后我稍后在同一个请求调用中引用相同的模型(拍卖),但它似乎没有 Model.put() 工作,因为它返回是因为 logging.info(len(auction.lots) 返回 1