From 29e875bcde7dffc95b2431123df571947c4979c0 Mon Sep 17 00:00:00 2001 From: Sli Date: Wed, 8 Jan 2025 09:31:54 +0100 Subject: [PATCH] Fix election display on mobile and add missing signal for news deletion --- com/signals.py | 4 ++-- com/templates/com/news_list.jinja | 2 +- election/static/election/css/election.scss | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/com/signals.py b/com/signals.py index ea004ad8..1c42c6e9 100644 --- a/com/signals.py +++ b/com/signals.py @@ -1,10 +1,10 @@ -from django.db.models.base import post_save +from django.db.models.signals import post_delete, post_save from django.dispatch import receiver from com.calendar import IcsCalendar from com.models import News -@receiver(post_save, sender=News, dispatch_uid="update_internal_ics") +@receiver([post_save, post_delete], sender=News, dispatch_uid="update_internal_ics") def update_internal_ics(*args, **kwargs): _ = IcsCalendar.make_internal() diff --git a/com/templates/com/news_list.jinja b/com/templates/com/news_list.jinja index e0f5c4e5..0cd04749 100644 --- a/com/templates/com/news_list.jinja +++ b/com/templates/com/news_list.jinja @@ -125,7 +125,7 @@ {% trans %}Discord AE{% endtrans %} {% if user.was_subscribed %} - - {% trans %}Dev Team{% endtrans %} + - {% trans %}Dev Team{% endtrans %} {% endif %}
  • diff --git a/election/static/election/css/election.scss b/election/static/election/css/election.scss index 30ab7e64..32ba7a9c 100644 --- a/election/static/election/css/election.scss +++ b/election/static/election/css/election.scss @@ -26,7 +26,7 @@ $min_col_width: 100px; } #page #content { - overflow-x: clip; + overflow-x: scroll; } .election_table {