(podcast, user, max_tags=50)
return list(tags.values())
Returns all tags that user sees for the given podcast

    The tag list is a list of dicts in the form of {'tag': 'tech', 'is_own':
    True}. "is_own" indicates if the tag was created by the given user.
Returns all tags that user sees for the given podcast
Returns all tags that user sees for the given podcast
def get_tags(podcast, user, max_tags=50):
    """Returns all tags that user sees for the given podcast

    The tag list is a list of dicts in the form of {'tag': 'tech', 'is_own':
    True}. "is_own" indicates if the tag was created by the given user."""
    tags = {}

    for tag in podcast.tags.all():
        t = tag.tag.lower()
        if not t in tags:
            tags[t] = {"tag": t, "is_own": False}

        if tag.user == user:
            tags[t]["is_own"] = True

    return list(tags.values())
def get_tags ( podcast , user , max_tags = 50 ) : tags = { } for tag in podcast . tags . all ( ) : t = tag . tag . lower ( ) if not t in tags : tags [ t ] = { "tag" : t , "is_own" : False } if tag . user == user : tags [ t ] [ "is_own" ] = True return list ( tags . values ( ) )