Share project info.
authorRadek Czajka <rczajka@rczajka.pl>
Wed, 3 Apr 2024 08:26:17 +0000 (10:26 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Wed, 3 Apr 2024 08:26:17 +0000 (10:26 +0200)
src/archive/views.py

index b4a3696..cef9bbc 100644 (file)
@@ -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(),
                 "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
         ]
             }
             for item in qs
         ]