mirror of
https://github.com/django/django.git
synced 2025-12-03 16:47:26 +00:00
Avoided creation of temporary set in Query.append_annotation_mask().
This commit is contained in:
parent
0608c24378
commit
6141040813
1 changed files with 1 additions and 1 deletions
|
|
@ -1784,7 +1784,7 @@ class Query:
|
|||
|
||||
def append_annotation_mask(self, names):
|
||||
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):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue