from django.shortcuts import render
from django.views.generic import ListView, DetailView
from libros.models import autores, titulos, lectores

# Create your views here.
def home(request):
	return render(request, 'libros/home.html')

class ListaTitulos(ListView):
    queryset = titulos.objects.order_by('-fecha')
    context_object_name = 'titulos'
    paginate_by = 8

class DetalleTitulos(DetailView):
    model = titulos


349a54bd6f604122f3726d0135cd7da515735d3f
<mask token>


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


class DetalleTitulos(DetailView):
    model = titulos

<mask token>


class ListaTitulos(ListView):
    queryset = titulos.objects.order_by('-fecha')
    context_object_name = 'titulos'
    paginate_by = 8


class DetalleTitulos(DetailView):
    model = titulos

<mask token>


def home(request):
    return render(request, 'libros/home.html')


class ListaTitulos(ListView):
    queryset = titulos.objects.order_by('-fecha')
    context_object_name = 'titulos'
    paginate_by = 8


class DetalleTitulos(DetailView):
    model = titulos

from django.shortcuts import render
from django.views.generic import ListView, DetailView
from libros.models import autores, titulos, lectores


def home(request):
    return render(request, 'libros/home.html')


class ListaTitulos(ListView):
    queryset = titulos.objects.order_by('-fecha')
    context_object_name = 'titulos'
    paginate_by = 8


class DetalleTitulos(DetailView):
    model = titulos

from django.shortcuts import render
from django.views.generic import ListView, DetailView
from libros.models import autores, titulos, lectores

# Create your views here.
def home(request):
	return render(request, 'libros/home.html')

class ListaTitulos(ListView):
    queryset = titulos.objects.order_by('-fecha')
    context_object_name = 'titulos'
    paginate_by = 8

class DetalleTitulos(DetailView):
    model = titulos

