From ed1a78c2119b47b2f43030eb7b69d1e99dfa3251 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 26 Oct 2015 22:46:25 +0200 Subject: Show default status description in checkin --- servo/views/checkin.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'servo/views') 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()) -- cgit v1.2.3