import re
from django.db.models import Q, Count, F, Max
from django import template
import re
from django.db.models import Q, Count, F, Max
from django import template
from django.contrib.auth.models import User
from documents.models import Book, Chunk, Image, Project
from django.contrib.auth.models import User
from documents.models import Book, Chunk, Image, Project