This must be pretty basic or Im just thinking it wrong. Please help.
In a template I query a few objects and display them as follows:
{% for obj in objects %}
{{obj.attr1}}
{{obj.attr2}}
{% endfor }}
Now, suppose I create another object at the server side and respond back the new object data with AJAX, for example this is the response: :
{'attr1':some_attribute,
'attr2':some_attribute'}
How do i append the new object to the for loop of objects?