def user_bookmarks(request):
    return object_list(
        request,
        queryset=Bookmark.objects.filter(user__pk=request.user.id),
        template_name="cab/user_bookmarks.html",
        paginate_by=20,
    )
Beispiel #2
0
def top_tags(request):
    return object_list(
        request,
        queryset=Snippet.objects.top_tags(),
        template_name='cab/tag_list.html',
        paginate_by=20,
    )
Beispiel #3
0
def top_tags(request):
    return object_list(
        request,
        queryset=Snippet.objects.top_tags(),
        template_name='cab/tag_list.html',
        paginate_by=20,
    )
Beispiel #4
0
def language_list(request):
    return object_list(
        request,
        queryset=Language.objects.all(),
        paginate_by=20,
    )
Beispiel #5
0
def user_bookmarks(request):
    return object_list(
        request,
        queryset=Bookmark.objects.filter(user__pk=request.user.id),
        template_name='cab/user_bookmarks.html',
        paginate_by=20)
Beispiel #6
0
def top_authors(request):
    return object_list(request,
                       queryset=Snippet.objects.top_authors(),
                       template_name='cab/top_authors.html',
                       paginate_by=20)
Beispiel #7
0
def top_languages(request):
    return object_list(request,
                       queryset=Language.objects.top_languages(),
                       template_name='cab/language_list.html',
                       paginate_by=20)
Beispiel #8
0
def top_authors(request):
    return object_list(
        request,
        queryset=Snippet.objects.top_authors(),
        template_name='cab/top_authors.html',
        paginate_by=20)
Beispiel #9
0
def top_languages(request):
    return object_list(
        request,
        queryset=Language.objects.top_languages(),
        template_name='cab/language_list.html',
        paginate_by=20)