Forgot to use "self" a few times

Signed-off-by: James Ren <[email protected]>

--- autotest/frontend/planner/models.py 2010-02-18 15:15:56.000000000 -0800
+++ autotest/frontend/planner/models.py 2010-02-18 15:52:57.000000000 -0800
@@ -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):
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to