I am extending the list view and in every object i need to add a dictionary.
My dic look like this
mydict1['var1'] = {'value':20, 'result':None}
mydict1['var2'] = {'value':20, 'result':None}
mydict1['var3'] = {'value':20, 'result':None}
now i want to add that dictionary to all objects like
for myobj in self.get_queryset():
myobj.add(mydict1)
so that i access in my template like this
{{myobj.dict1.var1.value}}
It looks like you just want to set an attribute on your objects?
So this should work: