(request, tag)
return posts
Return list of post uids that have a tag.
Return list of post uids that have a tag.
Return list of post uids that have a tag .
def api_tag(request, tag):
    """
    Return list of post uids that have a tag.
    """
    posts = Post.objects.filter(tags__name=tag.lower()).values_list('uid', flat=True)
    posts = list(posts)

    return posts
def api_tag ( request , tag ) : posts = Post . objects . filter ( tags__name = tag . lower ( ) ) . values_list ( 'uid' , flat = True ) posts = list ( posts ) return posts