From 91a20d3c82e0edcd883148b14df90b56a38ba2b2 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 28 Sep 2023 09:18:58 +0200 Subject: [PATCH 1/1] Assigning isbn. --- .../templates/documents/book_detail.html | 3 ++ src/documents/templatetags/documents.py | 1 + src/isbn/models.py | 31 ++++++++++++ src/isbn/product_forms.py | 18 ++++--- src/isbn/templates/isbn/isbn_status.html | 19 ++++++++ src/isbn/templatetags/isbn.py | 36 ++++++++++++++ src/isbn/urls.py | 1 + src/isbn/views.py | 48 ++++++++++++++++++- 8 files changed, 149 insertions(+), 8 deletions(-) create mode 100644 src/isbn/templates/isbn/isbn_status.html create mode 100644 src/isbn/templatetags/isbn.py diff --git a/src/documents/templates/documents/book_detail.html b/src/documents/templates/documents/book_detail.html index f534cd69..a286302f 100644 --- a/src/documents/templates/documents/book_detail.html +++ b/src/documents/templates/documents/book_detail.html @@ -2,6 +2,7 @@ {% load book_list i18n %} {% load bootstrap4 %} {% load depot %} +{% load isbn %} {% block titleextra %}{{ book.title }}{% endblock %} @@ -125,6 +126,8 @@ {% trans "MOBI version" %}

+ {% isbn_status book %} + {% if user.is_authenticated %}