Upgrade from Django 0.96 to Django 1.0.2.

Risk: high (framework change)
Visibility: medium

Signed-off-by: James Ren <jamesren@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3457 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/scheduler/monitor_db.py b/scheduler/monitor_db.py
index 537671f..a249cca 100755
--- a/scheduler/monitor_db.py
+++ b/scheduler/monitor_db.py
@@ -807,7 +807,7 @@
         tasks = models.SpecialTask.objects.filter(is_active=True,
                                                   is_complete=False)
         # Use ordering to force NULL queue_entry_id's to the end of the list
-        for task in tasks.order_by('-queue_entry_id'):
+        for task in tasks.order_by('-queue_entry__id'):
             assert not self.host_has_agent(task.host)
 
             host = Host(id=task.host.id)