Hi.

I have a view that currently simply takes a QuerySet and displays it
using pagination with the list_detail.object_list generic method:

return list_detail.object_list(
            request,
            queryset = cset,
            paginate_by=30
   )

I need to rewrite the view so that for each object I need to make a
simple calculation based on the data in the fields of that object, and
send the objects and the calculated results to the template. I would
prefer to still use pagination somehow if that's possible.

How one would approach this? Do I iterate over the whole QuerySet,
adding a calculated value to each object? What about pagination as
done in the generic methods?

Thanks.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to