From 5cc67993564886fb6c1377f8d41c0bbae3c5df7f Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 13 Feb 2023 09:45:56 -0500 Subject: [PATCH] manually add podcast if search result missing --- catalog/podcast/models.py | 7 +++++++ catalog/templates/search_sidebar.html | 7 +++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/catalog/podcast/models.py b/catalog/podcast/models.py index 939fc61b..0cfc7aee 100644 --- a/catalog/podcast/models.py +++ b/catalog/podcast/models.py @@ -36,6 +36,13 @@ class Podcast(Item): "official_site", ] + @classmethod + def lookup_id_type_choices(cls): + id_types = [ + IdType.RSS, + ] + return [(i.value, i.label) for i in id_types] + @property def recent_episodes(self): return self.episodes.all().order_by("-pub_date")[:10] diff --git a/catalog/templates/search_sidebar.html b/catalog/templates/search_sidebar.html index a53d685c..4b543218 100644 --- a/catalog/templates/search_sidebar.html +++ b/catalog/templates/search_sidebar.html @@ -4,7 +4,7 @@
- + \ No newline at end of file +