aboutsummaryrefslogtreecommitdiffstats
path: root/servo/models/order.py
diff options
context:
space:
mode:
Diffstat (limited to 'servo/models/order.py')
-rw-r--r--servo/models/order.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/servo/models/order.py b/servo/models/order.py
index 344100d..574637d 100644
--- a/servo/models/order.py
+++ b/servo/models/order.py
@@ -284,11 +284,15 @@ class Order(models.Model):
"""
Return context dict for printing this order
"""
- r = {}
- r['order'] = self
+ r = {'order': self}
r['conf'] = Configuration.conf()
r['title'] = _(u"Service Order #%s") % self.code
r['notes'] = self.note_set.filter(is_reported=True)
+ # TODO: replace with constants
+ r['issues'] = r['notes'].filter(type=2)
+ r['diagnoses'] = r['notes'].filter(type=3)
+ r['verified_issues'] = r['notes'].filter(type=4)
+ r['customer_notes'] = r['notes'].filter(type=5)
if kind == 'receipt':
try: