Modify an objects value in Views without modifying the data base value with django
<p>I have a small issue with modifying an object before it is returned in Views.py. My situation is that I have to hide/modify certain values from model objects for unsubscribed users. My current code is something like this (pseudo code): </p>

<pre><code>ShowList(ListAPIView):
    def get_queryset(self):
    """
    This view should return a list of all the Shows
    for the currently authenticated user.
    """
    pk = self.kwargs['pk']
    shows = Shows.objects.get(id=pk) 
    return shows
</code></pre>

<p>What I would like to do is change one object from the ones it got from the query. For example, I want to return 0/null for the object named 'video'. What I have done is: </p>

<pre><code>shows.video = 0
shows.save()
return shows
</code></pre>

<p>The problem is that it actually overwrites the object's value in the database level. All I want is to change it temporarily before it is returned. I have also tried </p>

<p><code>permission_classes =(subscription_permission,)</code> </p>

<p>but it blocks all the views.py. I want the unsubscribed user to see a preview of what is to be seen for a subscribed user, but not see the video. Thank you!</p>