frontend/tko/models.py: Fix calls to as_sql method
commit69fe1942edd09f377b930f9f44e1413e9f75cbab
authorlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>
Mon, 6 Jun 2011 17:36:31 +0000 (6 17:36 +0000)
committerlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>
Mon, 6 Jun 2011 17:36:31 +0000 (6 17:36 +0000)
treea3359abf520f8378733e038e7a2967de08ffc3ff
parent27d67396f5d7eb1411054b2153c44fc4aec75178
frontend/tko/models.py: Fix calls to as_sql method

In Django 1.3, Query objects do not possess the as_sql method.
Let's fix that, by calling as_sql on the SQLCompiler class.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5407 592f7852-d20e-0410-864c-8624ca9c26a4
frontend/tko/models.py