From 17813a3d7d0c5d291da414b89f3a5c1a936ada64 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 3 Apr 2024 10:26:17 +0200 Subject: [PATCH 1/1] Share project info. --- src/archive/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/archive/views.py b/src/archive/views.py index b4a3696..cef9bbc 100644 --- a/src/archive/views.py +++ b/src/archive/views.py @@ -313,6 +313,10 @@ def book_json(request, slug): "mp3_status": item.get_mp3_status_display(), "ogg_status": item.get_ogg_status_display(), "youtube_status": item.get_youtube_status_display(), + "project": { + "name": item.project.name, + "can_sell": item.can_sell, + } } for item in qs ] -- 2.20.1