from django.shortcuts import render

# Create your views here.
from django.views.generic import ListView, DetailView

from django_books.models import Author


class AuthorListView(ListView):
    model = Author
    template_name = 'author/author_list.html'

    def get_queryset(self):
        return Author.objects.all()


class AuthorDetailView(DetailView):
    model = Author
    template_name = 'author/author_detail_list.html'

aa2ad188b3a26dfa3dc3405524e52322cd0f86ec
<mask token>


class AuthorListView(ListView):
    <mask token>
    <mask token>
    <mask token>


class AuthorDetailView(DetailView):
    model = Author
    template_name = 'author/author_detail_list.html'

<mask token>


class AuthorListView(ListView):
    <mask token>
    <mask token>

    def get_queryset(self):
        return Author.objects.all()


class AuthorDetailView(DetailView):
    model = Author
    template_name = 'author/author_detail_list.html'

<mask token>


class AuthorListView(ListView):
    model = Author
    template_name = 'author/author_list.html'

    def get_queryset(self):
        return Author.objects.all()


class AuthorDetailView(DetailView):
    model = Author
    template_name = 'author/author_detail_list.html'

from django.shortcuts import render
from django.views.generic import ListView, DetailView
from django_books.models import Author


class AuthorListView(ListView):
    model = Author
    template_name = 'author/author_list.html'

    def get_queryset(self):
        return Author.objects.all()


class AuthorDetailView(DetailView):
    model = Author
    template_name = 'author/author_detail_list.html'

from django.shortcuts import render

# Create your views here.
from django.views.generic import ListView, DetailView

from django_books.models import Author


class AuthorListView(ListView):
    model = Author
    template_name = 'author/author_list.html'

    def get_queryset(self):
        return Author.objects.all()


class AuthorDetailView(DetailView):
    model = Author
    template_name = 'author/author_detail_list.html'
