

@login_required
def tags_ajax(request):
    term = request.GET.get('term')
    if term:
        tags = Tag.objects.filter(name__startswith=term)
    else:
        tags = Tag.objects.all()
    return json_response([tag.name for tag in tag])

dataset/ETHPy150Open dropbox/questions/questions/views.py tags_ajax/VarMisuse@68/79 `tags`->`tag`