Detail page not working

I am trying to count likes on each item in my blog. But i am getting this error

method’ object does not support item assignment

My Model
likes = models.ManyToManyField(User, related_name=‘blog_posts’)

def total_likes(self):
    return self.likes.count()

Views
class ItemDetailView(DetailView):
model = Item
template_name =‘waqart/item_detail.html’

#function to count total likes the main total_likes function is detail inside model

def get_context_data(self, *args, **kwargs):
    context = super(ItemDetailView, self).get_context_data

    stuff = get_object_or_404(Item, id=self.kwargs['pk'])
    total_likes = stuff.total_likes()
    context['total_likes']= total_likes
    return context

A couple of side notes -

When posting code here, enclose a block of code between lines of three backtick - ` characters. This means you’ll have a line of ```, then your code, then another line of ```. This forces the forum software to keep your formatting of the code, which is critical with Python.

When requesting help for an error, please copy and paste the complete traceback. There are many times when the answer to an issue is found before the last item.

In the absence of the complete traceback, take a careful look at this line: