mirror of https://github.com/django/django.git
Avoided creation of temporary set in Query.append_annotation_mask().
This commit is contained in:
parent
0608c24378
commit
6141040813
|
@ -1784,7 +1784,7 @@ class Query:
|
||||||
|
|
||||||
def append_annotation_mask(self, names):
|
def append_annotation_mask(self, names):
|
||||||
if self.annotation_select_mask is not None:
|
if self.annotation_select_mask is not None:
|
||||||
self.set_annotation_mask(set(names).union(self.annotation_select_mask))
|
self.set_annotation_mask(self.annotation_select_mask.union(names))
|
||||||
|
|
||||||
def set_extra_mask(self, names):
|
def set_extra_mask(self, names):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue