mirror of
https://github.com/django/django.git
synced 2025-12-04 00:55:36 +00:00
Fixed #29048 -- Added **extra_context to database function as_vendor() methods.
This commit is contained in:
parent
08f360355a
commit
83b04d4f88
11 changed files with 108 additions and 83 deletions
|
|
@ -275,7 +275,7 @@ We can change the behavior on a specific backend by creating a subclass of
|
|||
``NotEqual`` with an ``as_mysql`` method::
|
||||
|
||||
class MySQLNotEqual(NotEqual):
|
||||
def as_mysql(self, compiler, connection):
|
||||
def as_mysql(self, compiler, connection, **extra_context):
|
||||
lhs, lhs_params = self.process_lhs(compiler, connection)
|
||||
rhs, rhs_params = self.process_rhs(compiler, connection)
|
||||
params = lhs_params + rhs_params
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue