I\'m pretty new to Django and come from the PHP world. I\'m trying to \'add\' a field to a queryset after computing things, and don\'t know how to do it. In PHP I would just add
Why not use a dictionary?
newthing = {} newthing['your_key'] = to_add
In the template, you can access dictionary values with:
{{newthing.your_key}}
Or use the for loop if you have a dictionary of dictionaries