1
我使用的谷歌應用程序引擎AEP取參考屬性如何在Django模板
class Link():
bag = db.Referencepropery(Bag) #bag have name, id and other property
name = db.Stringpropery
object_query = Link.all();
p = paginator(object_query)
object_list = p.page(1);
prefetch_references(object_list.object_list, 'bag')
render_to_response(...,{'object_list':object_list.object_list},...)
#template
{% for object in object_list%}
{{object.bag.id}} <!--failed to get any value, why???/-->
{% end %}
我快速的問題對不起,我確實做到了爲你做什麼,但我無法做到這一點 我已經詳細說明了我的問題 – zinking 2009-08-26 12:09:46