summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-03-25 18:51:34 -0400
committerTim Graham <timograham@gmail.com>2016-03-28 10:59:12 -0400
commitfb84e877ce661f11b4c0ac71a34c533257f1c4a8 (patch)
treed4fce9d66f6dae4a2a26d678d238ee98b076f494
parent82243e5150f67b6fe8c6f8f650bf3b492823c3e7 (diff)
Normalized Func.as_sqlite() signature.
-rw-r--r--django/db/models/expressions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/models/expressions.py b/django/db/models/expressions.py
index 02174ef101..eeb042b361 100644
--- a/django/db/models/expressions.py
+++ b/django/db/models/expressions.py
@@ -550,8 +550,8 @@ class Func(Expression):
template = template or self.extra.get('template', self.template)
return template % self.extra, params
- def as_sqlite(self, *args, **kwargs):
- sql, params = self.as_sql(*args, **kwargs)
+ def as_sqlite(self, compiler, connection):
+ sql, params = self.as_sql(compiler, connection)
try:
if self.output_field.get_internal_type() == 'DecimalField':
sql = 'CAST(%s AS NUMERIC)' % sql