aboutsummaryrefslogtreecommitdiffstats
path: root/servo/models/order.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-10-26 22:46:25 +0200
committerFilipp Lepalaan <filipp@mac.com>2015-10-26 22:46:25 +0200
commited1a78c2119b47b2f43030eb7b69d1e99dfa3251 (patch)
treee847d871cd311ca2489fccc4ffad3ed80b0a240a /servo/models/order.py
parentd6058ee73317a26b2f41e3ecf83fdda2978382cb (diff)
downloadServo-ed1a78c2119b47b2f43030eb7b69d1e99dfa3251.tar.gz
Servo-ed1a78c2119b47b2f43030eb7b69d1e99dfa3251.tar.bz2
Servo-ed1a78c2119b47b2f43030eb7b69d1e99dfa3251.zip
Show default status description in checkin
Diffstat (limited to 'servo/models/order.py')
-rw-r--r--servo/models/order.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/servo/models/order.py b/servo/models/order.py
index ba4fed5..f163f9b 100644
--- a/servo/models/order.py
+++ b/servo/models/order.py
@@ -383,10 +383,10 @@ class Order(models.Model):
pass
def get_status_description(self):
- try:
+ if self.status is None:
+ return _('Order is waiting to be processed')
+ else
return self.status.status.description
- except Exception:
- pass
def get_status_id(self):
"""