objectlist is missing the _

2009/8/27 Albert <[email protected]>:
>
> I am using aep on google app engine
>
> 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 objectlist%}
>  {{object.bag.id}} <!--failed to get any value, why???/-->
> {% end %}
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to