Forgot to use "self" a few times

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


git-svn-id: http://test.kernel.org/svn/autotest/trunk@4261 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/planner/models.py b/frontend/planner/models.py
index 2236b11..52ff1bc 100644
--- a/frontend/planner/models.py
+++ b/frontend/planner/models.py
@@ -95,7 +95,7 @@
 
 
     def _get_details_unicode(self):
-        return 'Host: %s' % host.hostname
+        return 'Host: %s' % self.host.hostname
 
 
     @classmethod
@@ -152,7 +152,7 @@
 
 
     def _get_details_unicode(self):
-        return 'Planned test - Control file id %s' % test_control_file.id
+        return 'Planned test - Control file id %s' % self.control_file.id
 
 
 class Job(ModelWithPlan):
@@ -170,7 +170,7 @@
 
 
     def _get_details_unicode(self):
-        return 'AFE job %s' % afe_job.id
+        return 'AFE job %s' % self.afe_job.id
 
 
 class Bug(dbmodels.Model):