Skip to content

Commit

Permalink
Merge pull request #2092 from learning-unlimited/getListDescriptions
Browse files Browse the repository at this point in the history
getListDescriptions() shouldn't be cached
  • Loading branch information
benjaminjkraft committed Apr 1, 2016
2 parents 6bcbeb7 + 77eb75f commit 41bd8da
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions esp/esp/program/models/__init__.py
Expand Up @@ -420,7 +420,6 @@ def student_counts_by_section_id(self):

return clean_counts

@cache_function
def getListDescriptions(self):
desc = {}
modules = self.getModules()
Expand All @@ -431,7 +430,6 @@ def getListDescriptions(self):
if tmpdict is not None:
desc.update(tmpdict)
return desc
getListDescriptions.depend_on_m2m('program.Program', 'program_modules', lambda program, module: {'self': program})

def getLists(self, QObjects=False):
from esp.users.models import ESPUser
Expand Down

0 comments on commit 41bd8da

Please sign in to comment.