I have a view in Django that fetches some objects, adds new attribute to them and returns them as JSON response.

The code looks like this:

```
def stats(request):
    items = MyItem.objects.all().order_by('-id')

    for item in items:
        item.new_attribute = 10

    items_json = serializers.serialize('json', items)

    return HttpResponse(items_json, content_type='application/json')

```

The new\_attribute is not visible in JSON response. How can I make it visible in JSON response? It can be accessed in templates normally with {{ item.new\_attribute }}.

**EDIT:** I'm using default Django serializer (from django.core import serializers)