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

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

  •  
  •   nttdocomo · Sep 4, 2012 · 4015 views
    This topic created in 5076 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   ·   5759 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 06:19 · PVG 14:19 · LAX 23:19 · JFK 02:19
    ♥ Do have faith in what you're doing.