From: Radek Czajka Date: Wed, 3 Apr 2024 08:26:17 +0000 (+0200) Subject: Share project info. X-Git-Url: https://git.mdrn.pl/audio.git/commitdiff_plain/17813a3d7d0c5d291da414b89f3a5c1a936ada64?ds=sidebyside Share project info. --- 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 ]