Skip to content

Commit 6141040

Browse files
sir-sigurdtimgraham
authored andcommitted
Avoided creation of temporary set in Query.append_annotation_mask().
1 parent 0608c24 commit 6141040

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django/db/models/sql/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1784,7 +1784,7 @@ def set_annotation_mask(self, names):
17841784

17851785
def append_annotation_mask(self, names):
17861786
if self.annotation_select_mask is not None:
1787-
self.set_annotation_mask(set(names).union(self.annotation_select_mask))
1787+
self.set_annotation_mask(self.annotation_select_mask.union(names))
17881788

17891789
def set_extra_mask(self, names):
17901790
"""

0 commit comments

Comments
 (0)