Sith/com/signals.py

11 lines
297 B
Python
Raw Normal View History

2025-01-03 12:56:40 +00:00
from django.db.models.base import post_save
from django.dispatch import receiver
2025-01-04 17:57:31 +00:00
from com.calendar import IcsCalendar
from com.models import News
2025-01-03 12:56:40 +00:00
@receiver(post_save, sender=News, dispatch_uid="update_internal_ics")
def update_internal_ics(*args, **kwargs):
_ = IcsCalendar.make_internal()