From ac29fec1116953a70f055c45a0aef6a24477653e Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Mon, 20 Aug 2018 22:16:27 +0200 Subject: [PATCH] Removed unused function argument from Window.as_sql(). Unused since its introduction in d549b8805053d4b064bf492ba90e90db5d7e2a6b. --- django/db/models/expressions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/models/expressions.py b/django/db/models/expressions.py index 86ce77daa2..9a9c036f86 100644 --- a/django/db/models/expressions.py +++ b/django/db/models/expressions.py @@ -1237,7 +1237,7 @@ class Window(Expression): def set_source_expressions(self, exprs): self.source_expression, self.partition_by, self.order_by, self.frame = exprs - def as_sql(self, compiler, connection, function=None, template=None): + def as_sql(self, compiler, connection, template=None): connection.ops.check_expression_support(self) expr_sql, params = compiler.compile(self.source_expression) window_sql, window_params = [], []