Hey, it helps :-) but i have a little problem now. I try to add an attribute to each element. In the CLI ist works:
>>> from mysite.myapp.models import Mymodel >>> list = Mymodel.objects.all() >>> for elem in list: ... elem.kmph = elem.distance/elem.time >>> list[0].kmph 45 But when i put this in a view, it don't work: def myview(request): list = Mymodel.objects.all() for elem in list: elem.kmph = elem.distance/elem.time return object_list(request, queryset=list) In the template i have a part something like this: [...] {% for elem in object_list %} <tr> <td>{{elem.distance}}</td> <td>{{elem.time}}</td> <td>{{elem.kmph}}</td> </tr> {% endfor %} [...] but the "kmph" is allways empty. Any idea? thanks so far... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---