Use signals to update internal ics

This commit is contained in:
2025-01-03 13:56:40 +01:00
rodzic a60e1f1fdc
commit 65df55a635
5 zmienionych plików z 53 dodań i 26 usunięć

Wyświetl plik

@@ -46,7 +46,7 @@ from accounting.models import (
SimplifiedAccountingType,
)
from club.models import Club, Membership
from com.models import News, NewsDate, Sith, Weekmail
from com.models import IcsCalendar, News, NewsDate, Sith, Weekmail
from core.models import Group, Page, PageRev, SithFile, User
from core.utils import resize_image
from counter.models import Counter, Product, ProductType, StudentCard
@@ -764,6 +764,7 @@ Welcome to the wiki page!
]
)
NewsDate.objects.bulk_create(news_dates)
IcsCalendar.make_internal() # Force refresh of the calendar after a bulk_create
# Create some data for pedagogy