{{{
In [27]: s = Sum('x', filter=Q(x=1))
In [28]: s.get_source_expressions()
Out[28]: [F(x), <Q: (AND: ('x', 1))>]
In [29]: s.get_source_expressions()
Out[29]: [F(x), <Q: (AND: ('x', 1))>, <Q: (AND: ('x', 1))>]
In [30]: s.get_source_expressions()
Out[30]: [F(x), <Q: (AND: ('x', 1))>, <Q: (AND: ('x', 1))>, <Q: (AND:
('x', 1))>]
}}}
Each call of `get_source_expressions` on instance of aggregate function
causes list element duplication.
--
Ticket URL: <https://code.djangoproject.com/ticket/30244>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Herman S):
Looks like this was fixed in #30011
(https://code.djangoproject.com/changeset/53269bcaaf1fc2ce4db797d7d8935d98a53494df)
--
Ticket URL: <https://code.djangoproject.com/ticket/30244#comment:1>
* status: new => closed
* resolution: => fixed
Comment:
This is good news, so I will wait for the Django 2.2. Thanks!
--
Ticket URL: <https://code.djangoproject.com/ticket/30244#comment:2>