from django.shortcuts import render
from .models import Book, Author, BookInstance, Genre
def index(request):
num_books = Book.objects.count()
num_instances = BookInstance.objects.count()
num_instances_available = BookInstance.objects.filter(status__exact='a').count()
num_authors = Author.objects.count()
num_genres = Genre.objects.count()
num_books_words = Book.objects.all().filter(title = 'библия').count()
return render (request,'index.html',context={'num_books':num_books,'num_instances':num_instances,'num_instances_available':num_instances_available,'num_authors':num_authors, 'num_genres':num_genres, 'num_books_words':num_books_words})
Как отфильтровать num_books_words так, чтобы не учитывался регистр?