

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

dataset/ETHPy150Open dropbox/questions/questions/views.py view_group/VarMisuse@85/123 `group_id`->`approved_questions`