1 parent
ca61f7cc7b
commit
f64e38f799
1 file changed
+7
-1
@@ -139,7 +139,13 @@ class Exclude(Constraint):
|
||||
return self._where
|
||||
|
||||
def __str__(self, using=''):
|
||||
exclude = ', '.join('%s WITH %s' % (column, operator._operator)
|
||||
def format_(element):
|
||||
if isinstance(element, Column):
|
||||
return element
|
||||
else:
|
||||
return '(%s)' % element
|
||||
exclude = ', '.join(
|
||||
'%s WITH %s' % (format_(column), operator._operator)
|
||||
for column, operator in self.excludes)
|
||||
where = ''
|
||||
if self.where:
|
||||
|
||||
Reference in new issue
Block a user