Update schedules query not to defer ical fields used for on-call check (#1114)
Do not defer cached ical fields which are later needed for calculating on-call users listed in the schedules list page.
This commit is contained in:
parent
87fad5eec1
commit
abbb5a8381
1 changed files with 0 additions and 2 deletions
|
|
@ -135,9 +135,7 @@ class ScheduleView(
|
|||
organization = self.request.auth.organization
|
||||
queryset = OnCallSchedule.objects.filter(organization=organization, team=self.request.user.current_team).defer(
|
||||
# avoid requesting large text fields which are not used when listing schedules
|
||||
"cached_ical_file_primary",
|
||||
"prev_ical_file_primary",
|
||||
"cached_ical_file_overrides",
|
||||
"prev_ical_file_overrides",
|
||||
)
|
||||
if not is_short_request:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue