X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/42b2bed693f41819b314b54cbfea1f51ec5d0aad..05cca019b7dba62e457feb47df10e7a41dd939ef:/src/catalogue/views.py?ds=sidebyside diff --git a/src/catalogue/views.py b/src/catalogue/views.py index 007ebe470..cfed6ca4e 100644 --- a/src/catalogue/views.py +++ b/src/catalogue/views.py @@ -19,6 +19,7 @@ from django.views.decorators.cache import never_cache from ajaxable.utils import AjaxableFormView from club.models import Membership +from annoy.models import DynamicTextInsert from pdcounter import views as pdcounter_views from picture.models import Picture, PictureArea from catalogue import constants @@ -314,9 +315,11 @@ def book_text(request, slug): raise Http404 with book.html_file.open('r') as f: book_text = f.read() + return render(request, 'catalogue/book_text.html', { 'book': book, 'book_text': book_text, + 'inserts': DynamicTextInsert.objects.all() })