mirror of
https://github.com/ae-utbm/sith.git
synced 2025-09-13 03:25:49 +00:00
fix: N+1 queries on ICS generation
This commit is contained in:
@@ -68,7 +68,7 @@ class IcsCalendar:
|
||||
start=news_date.start_date,
|
||||
end=news_date.end_date,
|
||||
url=as_absolute_url(
|
||||
reverse("com:news_detail", kwargs={"news_id": news_date.news.id})
|
||||
reverse("com:news_detail", kwargs={"news_id": news_date.news_id})
|
||||
),
|
||||
)
|
||||
calendar.events.append(event)
|
||||
|
Reference in New Issue
Block a user