New: property .sql in order to obtain sql string instead of calling str(sql)
This commit is contained in:
@@ -309,6 +309,10 @@ class SQLCompiler(object):
|
|||||||
|
|
||||||
__str__ = __repr__
|
__str__ = __repr__
|
||||||
|
|
||||||
|
@property
|
||||||
|
def sql(self,):
|
||||||
|
return self.__str__(self)
|
||||||
|
|
||||||
|
|
||||||
class Queryset(SQLCompiler, SQLQuery):
|
class Queryset(SQLCompiler, SQLQuery):
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user