1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #29048 -- Added **extra_context to database function as_vendor() methods.

This commit is contained in:
priyanshsaxena
2018-02-08 12:39:00 +05:30
committed by Tim Graham
parent 08f360355a
commit 83b04d4f88
11 changed files with 108 additions and 83 deletions

View File

@@ -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