I query an array of objects from DB, then compare addresses of the objects in Model and in View. They differs! Why? I want access the same objects as from template as from business logics code.
I wouldn't ask for it but it really bother me because function calls are disallowed in Django-styled templates and I even can't assign custom properties to DB-objects within the business logics code.
In request handler:
from google.appengine.ext.webapp import template
cats = db.GqlQuery("SELECT * FROM Cats")
for cat in cats:
self.response.out.write("<li>%s</li>" % (a))
In template:
{% for a in articles %}
{{a}},
{% endfor %}
Addresses (hash codes) differs in such code.