Upgrade to Django 1.0.4.  In the course of normal development I ran into this Django bug:

http://code.djangoproject.com/ticket/9188

It seems to have been fixed between 1.0.2 and 1.0.4.  For reference, it can be reproduced on 1.0.2 with our AFE DB using this simple script:

import common
from autotest_lib.frontend import setup_django_environment
from autotest_lib.frontend import setup_test_environment
from autotest_lib.frontend.afe import models

setup_test_environment.set_up()

# this will raise an OperationalError if the bug is present
print models.SpecialTask.objects.exclude(host__hostqueueentry__active=True)

Signed-off-by: Steve Howard <showard@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3886 592f7852-d20e-0410-864c-8624ca9c26a4
1 file changed