Profiles have tags.
I'm rendering a list of profile_tags and top_tags. How would I go about checking if each tag in top_tags is in profile_tags?
What I've tried in my views:
has_tag = False
profile_tags = profile.tags.all()
top_tags = Tag.objects.all()
for top in top_tags:
if top in profile_tags:
has_tag = True
Thank you in advance for your help!