diff options
| author | Marti Raudsepp <marti@juffo.org> | 2023-01-09 14:23:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-09 13:23:08 +0100 |
| commit | 04fdf719331dde6b0f4e7cdc445be4d4278f3ec4 (patch) | |
| tree | f7bf97eec7f4893a04eb38168938cf70c3a90047 /django | |
| parent | dd68af62b2b27ece50d434f6a351877212e15c3f (diff) | |
Refs #30240 -- Fixed argument name for MySQLSHA2Mixin.as_mysql() and PostgreSQLSHAMixin.as_postgresql() methods.
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/models/functions/text.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/django/db/models/functions/text.py b/django/db/models/functions/text.py index 34a1e81982..8715e86898 100644 --- a/django/db/models/functions/text.py +++ b/django/db/models/functions/text.py @@ -6,12 +6,12 @@ from django.db.models.lookups import Transform class MySQLSHA2Mixin: - def as_mysql(self, compiler, connection, **extra_content): + def as_mysql(self, compiler, connection, **extra_context): return super().as_sql( compiler, connection, template="SHA2(%%(expressions)s, %s)" % self.function[3:], - **extra_content, + **extra_context, ) @@ -29,13 +29,13 @@ class OracleHashMixin: class PostgreSQLSHAMixin: - def as_postgresql(self, compiler, connection, **extra_content): + def as_postgresql(self, compiler, connection, **extra_context): return super().as_sql( compiler, connection, template="ENCODE(DIGEST(%(expressions)s, '%(function)s'), 'hex')", function=self.function.lower(), - **extra_content, + **extra_context, ) |
