From 20fefb9208fadc48a25277ce2328793edf978678 Mon Sep 17 00:00:00 2001
From: Armin Samii
Date: Sun, 1 Nov 2026 15:46:55 -0500
Subject: [PATCH] handle deletion stale cache for homepage and electionpage
---
templates/visualizer/confirmDeleteUpload.html | 5 +++++
visualizer/tests/testUserDashboard.py | 3 +++
visualizer/views.py | 10 ++++++++++
3 files changed, 18 insertions(+)
diff --git a/templates/visualizer/confirmDeleteUpload.html b/templates/visualizer/confirmDeleteUpload.html
index dd831713..fc9fd073 100644
--- a/templates/visualizer/confirmDeleteUpload.html
+++ b/templates/visualizer/confirmDeleteUpload.html
@@ -23,6 +23,11 @@ Delete this visualization?
Note: this visualization is updated automatically from an official data source. Deleting it will stop those updates.
{% endif %}
+ {% if isOnElectionPage %}
+
+ Note: this visualization appears on an election results page. Deleting it will remove it from that page.
+
+ {% endif %}