Commits

Jeremy Self committed c58cd14 Merge
  • Participants
  • Parent commits 7f8ccd2, c75cf83

Comments (0)

Files changed (3)

File docs/queryset_cache.rst

File contents unchanged.

File johnny/cache.py

     """
     from django.db.models.sql.where import WhereNode
     from django.db.models.query import QuerySet
-    tables = list(query.tables) or getattr(query, 'table_map', {}).keys()
+    tables = [v[0] for v in getattr(query,'alias_map',{}).values()]
 
     def get_tables(node, tables):
         for child in node.children:

File johnny/settings.py

File contents unchanged.