from django.shortcuts import render
from django.http import HttpResponse
from django.views.generic import ListView
from blog.views import CommonViewMixin
from .models import Link


# Create your views here.
"""
def links(request):
    return HttpResponse('links')
"""

class LinkListView(CommonViewMixin, ListView):
    # model = Link
    queryset = Link.objects.filter(status=Link.STATUS_NORMAL)
    template_name = 'config/links.html'
    context_object_name = 'link_list'
