mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 20:09:25 +00:00
Use signals to update internal ics
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user