views:

83

answers:

1

Hi

I need to add key/value to queryset per each object based on stuff in request.session.

How to do that?

Alan

A: 

You can use the .extra() method on a queryset to add extra 'fields'.

There is some documentation that may be useful.

Matthew Schinckel