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 %}