Skip to content

Commit

Permalink
issue 112 remove performance improvement since it breaks django 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
llazzaro committed May 16, 2015
1 parent e82ee1f commit 8baaa82
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions schedule/models/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ def get_occurrences(self, start, end):
[]
`
"""
if self.pk:
# performance booster for occurrences relationship
Event.objects.select_related('occurrence').get(pk=self.pk)
persisted_occurrences = self.occurrence_set.all()
occ_replacer = OccurrenceReplacer(persisted_occurrences)
occurrences = self._get_occurrence_list(start, end)
Expand Down

0 comments on commit 8baaa82

Please sign in to comment.