Django 1.2 Equivalent of QuerySet.query.as_sql()

Posted by Zach on Stack Overflow See other posts from Stack Overflow or by Zach
Published on 2010-05-24T20:22:36Z Indexed on 2010/05/24 20:31 UTC
Read the original article Hit count: 305

Filed under:
|
|

In Django 1.1 I was able to produce the SQL used by a QuerySet with this notation:

QuerySet.query.as_sql()

In Django 1.2, this raises as AttributeError.

Anyone know the Django 1.2 equivalent of that method?

Thanks

© Stack Overflow or respective owner

Related posts about python

Related posts about django