aboutsummaryrefslogtreecommitdiffstats
path: root/servo/views/checkin.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/views/checkin.py
parentd6058ee73317a26b2f41e3ecf83fdda2978382cb (diff)
downloadServo-ed1a78c2119b47b2f43030eb7b69d1e99dfa3251.tar.gz
Servo-ed1a78c2119b47b2f43030eb7b69d1e99dfa3251.tar.bz2
Servo-ed1a78c2119b47b2f43030eb7b69d1e99dfa3251.zip
Show default status description in checkin
Diffstat (limited to 'servo/views/checkin.py')
-rw-r--r--servo/views/checkin.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/servo/views/checkin.py b/servo/views/checkin.py
index a92d25b..66b83f8 100644
--- a/servo/views/checkin.py
+++ b/servo/views/checkin.py
@@ -186,13 +186,11 @@ def status(request):
code = form.cleaned_data['code']
try:
order = Order.objects.get(code=code)
+ status_description = order.get_status_description()
if Configuration.conf('checkin_timeline'):
timeline = order.orderstatus_set.all()
if order.status is None:
order.status_name = _(u'Waiting to be processed')
- status_description = _('Order is waiting to be processed')
- else:
- status_description = order.status.status.description
except Order.DoesNotExist:
messages.error(request, _(u'Order %s not found') % code)
return render(request, "checkin/status-show.html", locals())