DAOCLOUD
推荐学习书目
Python Cookbook
Using Google App Engine
推荐下载
Latest Google App Engine SDK
其他兼容技术
AppScale
nttdocomo

如何判断一个ReferenceProperty里的集合是空的?

  •  
  •   nttdocomo · Sep 4, 2012 · 3982 views
    This topic created in 5063 days ago, the information mentioned may be changed or developed.
    class A(model):
    name = StringProperty()

    class B(model)
    parent = ReferenceProperty(A)

    我改如何判断a.b_set是否为空呢?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   913 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 20:57 · PVG 04:57 · LAX 13:57 · JFK 16:57
    ♥ Do have faith in what you're doing.