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

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

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