mirror of
https://github.com/django/django.git
synced 2025-03-31 19:46:42 +00:00
Removed unnecessary StatAggregate.resolve_expression().
This method only calls the parent method, but without the for_save argument. The parent class, Aggregate, already ignores the for_save argument so there is no need for special handling. Unnecessary since its introduction in e4cf8c8420634d6f2dc8ce873246256ce635972d.
This commit is contained in:
parent
8d3519071e
commit
5b57798513
@ -15,9 +15,6 @@ class StatAggregate(Aggregate):
|
|||||||
raise ValueError('Both y and x must be provided.')
|
raise ValueError('Both y and x must be provided.')
|
||||||
super().__init__(y, x, output_field=output_field, filter=filter)
|
super().__init__(y, x, output_field=output_field, filter=filter)
|
||||||
|
|
||||||
def resolve_expression(self, query=None, allow_joins=True, reuse=None, summarize=False, for_save=False):
|
|
||||||
return super().resolve_expression(query, allow_joins, reuse, summarize)
|
|
||||||
|
|
||||||
|
|
||||||
class Corr(StatAggregate):
|
class Corr(StatAggregate):
|
||||||
function = 'CORR'
|
function = 'CORR'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user