summaryrefslogtreecommitdiff
path: root/aggregator
diff options
context:
space:
mode:
authorNatalia <124304+nessita@users.noreply.github.com>2026-04-08 12:07:49 -0300
committernessita <124304+nessita@users.noreply.github.com>2026-04-14 22:40:39 -0300
commitab5429a66410966cebbce2616e216abf02f50b32 (patch)
treed5154931e216047fb616204b378505d6aa8d5aaa /aggregator
parent858167b78fad97ec2aa3ef5a84de730a41135e5c (diff)
Allowed creation of site-wide banners via the admin interface.
Fixes #1550. A banner requires a title, and optionally HTML body and CTA label/URL. A banner can be active or inactive, and only one can be active at a time. Banners can be previewed from the admin via the "View on site" options on a Banner's detail page. This initial implementation is intentionally minimal to provide a robust but flexible MVP, with the goal to gather feedback for future iterations. Future improvements could include: - Active since and until dates. - Flexible CTA URL handling, such as URL names or local URLs. Thanks to Sarahs for the reviews.
Diffstat (limited to 'aggregator')
-rw-r--r--aggregator/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/aggregator/tests.py b/aggregator/tests.py
index afe67b0c..f5716c58 100644
--- a/aggregator/tests.py
+++ b/aggregator/tests.py
@@ -92,7 +92,7 @@ class AggregatorTests(TestCase):
def test_community_index_number_of_queries(self):
"""Intended to prevent an n+1 issue on the community index view"""
url = reverse("community-index")
- with self.assertNumQueries(8):
+ with self.assertNumQueries(9):
self.client.get(url)
def test_empty_feed_type_not_rendered(self):
@@ -119,7 +119,7 @@ class AggregatorTests(TestCase):
url = reverse(
"community-feed-list", kwargs={"feed_type_slug": self.feed_type.slug}
)
- with self.assertNumQueries(8):
+ with self.assertNumQueries(9):
self.client.get(url)
def test_management_command_sends_no_email_with_no_pending_feeds(self):