From 9b0079214a8f011dc1e4919ccd9fc7504a8b62e1 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Fri, 11 Dec 2015 11:44:47 +0200 Subject: Cleanup --- servo/models/repair.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'servo/models/repair.py') diff --git a/servo/models/repair.py b/servo/models/repair.py index c7ae4a1..9649b86 100644 --- a/servo/models/repair.py +++ b/servo/models/repair.py @@ -190,6 +190,9 @@ class Repair(models.Model): issue_code = models.CharField(max_length=7, default='') def get_symptom_code_choices(self): + """ + Returns the possible symptom codes for the current serial number + """ # @fixme: what if it's someone else ordering the part? self.gsx_account.connect(self.created_by) ckey = 'symptom_codes-%s' % self.device.sn @@ -197,6 +200,9 @@ class Repair(models.Model): return cache_getset(ckey, si.fetch) def get_issue_code_choices(self): + """ + Returns the possible issue codes for the current symptom code + """ # @fixme: what if it's someone else ordering the part? self.gsx_account.connect(self.created_by) ckey = 'issue_codes-%s' % self.symptom_code -- cgit v1.2.3