Exemplo n.º 1
0
def get_messages_authors_view(request):
    queryset = visible_messages(request)
    return get_user_hints_view(request, 'substr', queryset, 'author')
Exemplo n.º 2
0
def contest_user_hints_view(request):
    rcontroller = request.contest.controller.registration_controller()
    queryset = rcontroller.filter_participants(User.objects.all())
    return get_user_hints_view(request, 'substr', queryset)
Exemplo n.º 3
0
def get_report_users_view(request):
    queryset = Submission.objects.filter(
            problem_instance__contest=request.contest)
    return get_user_hints_view(request, 'substr', queryset, 'user')
Exemplo n.º 4
0
def get_users_in_ranking_view(request):
    queryset = Submission.objects
    return get_user_hints_view(request, 'substr', queryset, 'user')
Exemplo n.º 5
0
def get_suable_users_view(request):
    users = User.objects.filter(is_superuser=False)
    return get_user_hints_view(request, 'substr', users)
Exemplo n.º 6
0
def friend_hints_view(request):
    queryset = (User.objects.filter(teacher__isnull=False).exclude(
        friendships_received__creator=request.user).exclude(
            id=request.user.id))
    return get_user_hints_view(request, 'substr', queryset)
Exemplo n.º 7
0
def get_users_in_ranking_view(request):
    queryset = Submission.objects
    return get_user_hints_view(request, 'substr', queryset, 'user')
Exemplo n.º 8
0
def contest_user_hints_view(request):
    rcontroller = request.contest.controller.registration_controller()
    queryset = rcontroller.filter_participants(User.objects.all())
    return get_user_hints_view(request, 'substr', queryset)
Exemplo n.º 9
0
def get_report_users_view(request):
    queryset = Submission.objects.filter(problem_instance__contest=request.contest)
    return get_user_hints_view(request, 'substr', queryset, 'user')
Exemplo n.º 10
0
def get_messages_authors_view(request):
    queryset = visible_messages(request)
    return get_user_hints_view(request, 'substr', queryset, 'author')
Exemplo n.º 11
0
def get_suable_users_view(request):
    users = User.objects.filter(is_superuser=False)
    return get_user_hints_view(request, 'substr', users)