

@login_required
def index(request):
    context = {
        
    }
    approved_questions = Question.objects.filter(status__exact='Approved')
    pending_questions = Question.objects.filter(status__exact='Pending')
    banned_questions = Question.objects.filter(status__exact='Banned')
    settings = Settings.get_by_user(request.user)
    if settings.group:
        approved_questions = approved_questions.filter(groups__id=settings.group.id)
        pending_questions = pending_questions.filter(groups__id=settings.group.id)
        banned_questions = context.filter(groups__id=settings.group.id)
    context['approved_questions'] = approved_questions
    context['pending_questions'] = pending_questions
    context['banned_questions'] = banned_questions
    context['settings'] = settings
    return r2r(request, 'index', context)

dataset/ETHPy150Open dropbox/questions/questions/views.py index/VarMisuse@109/153 `banned_questions`->`context`