Skip to content

Commit

Permalink
Fixing invalidated_update, if updated QuerySet had related fields sel…
Browse files Browse the repository at this point in the history
…ected.
  • Loading branch information
M1hacka authored and Suor committed Sep 26, 2020
1 parent 35f9b13 commit 8314c37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cacheops/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def bulk_create(self, objs, *args, **kwargs):
return objs

def invalidated_update(self, **kwargs):
clone = self._clone().nocache()
clone = self._clone().nocache().select_related(None)
clone._for_write = True # affects routing

with atomic(using=clone.db):
Expand Down

0 comments on commit 8314c37

Please sign in to comment.