[Answer]-Badge notification by the number of new matches

1👍

I’m not fully understanding, but part of your problem may be this part:

{% if word == interest %}

You’re comparing a particular Post with all of your Interests (since 'interest' = Interests.objects.all()). At the very least I would change that to:

{% if word == item %}

As this iterates through your interest list (using ‘item’) and compares it to each ‘word’ in your post list.

👤Alex

Leave a comment