fixed varquote if no-table and IDENTITY
This commit is contained in:
+1
-1
@@ -8152,7 +8152,7 @@ class Field(Expression):
|
||||
return True
|
||||
|
||||
def __str__(self):
|
||||
quote = self.db._adapter and self.db._adapter.varquote or IDENTITY
|
||||
quote = self.db and self.db._adapter.varquote or IDENTITY
|
||||
try:
|
||||
return '%s.%s' % (quote(self.tablename), quote(self.name))
|
||||
except:
|
||||
|
||||
Reference in New Issue
Block a user