Beispiel #1
0
def get_messages_authors_view(request):
    queryset = visible_messages(request)
    return get_user_hints_view(request, 'substr', queryset, 'author')
Beispiel #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)
Beispiel #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')
Beispiel #4
0
def get_users_in_ranking_view(request):
    queryset = Submission.objects
    return get_user_hints_view(request, 'substr', queryset, 'user')
Beispiel #5
0
def get_suable_users_view(request):
    users = User.objects.filter(is_superuser=False)
    return get_user_hints_view(request, 'substr', users)
Beispiel #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)
Beispiel #7
0
def get_users_in_ranking_view(request):
    queryset = Submission.objects
    return get_user_hints_view(request, 'substr', queryset, 'user')
Beispiel #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)
Beispiel #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')
Beispiel #10
0
def get_messages_authors_view(request):
    queryset = visible_messages(request)
    return get_user_hints_view(request, 'substr', queryset, 'author')
Beispiel #11
0
def get_suable_users_view(request):
    users = User.objects.filter(is_superuser=False)
    return get_user_hints_view(request, 'substr', users)