From d6058ee73317a26b2f41e3ecf83fdda2978382cb Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 26 Oct 2015 22:43:58 +0200 Subject: Show default status description if not started --- servo/views/checkin.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'servo/views/checkin.py') diff --git a/servo/views/checkin.py b/servo/views/checkin.py index d48c907..a92d25b 100644 --- a/servo/views/checkin.py +++ b/servo/views/checkin.py @@ -190,6 +190,9 @@ def status(request): 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