Skip to content

Commit

Permalink
Merge b90d335 into f99f2ca
Browse files Browse the repository at this point in the history
  • Loading branch information
ukyen8 committed Apr 4, 2020
2 parents f99f2ca + b90d335 commit 57453f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schedule/models/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def get_occurrences(self, start, end, clear_prefetch=True):
# to override this cache clear since it already fetches all
# occurrence_sets via prefetch_related in its get_occurrences.
if clear_prefetch:
self.occurrence_set._remove_prefetched_objects()
self.refresh_from_db()

persisted_occurrences = self.occurrence_set.all()
occ_replacer = OccurrenceReplacer(persisted_occurrences)
Expand Down

0 comments on commit 57453f7

Please sign in to comment.