aboutsummaryrefslogtreecommitdiffstats
path: root/servo
diff options
context:
space:
mode:
Diffstat (limited to 'servo')
-rw-r--r--servo/views/product.py4
-rw-r--r--servo/views/shipments.py8
2 files changed, 6 insertions, 6 deletions
diff --git a/servo/views/product.py b/servo/views/product.py
index a614819..505f028 100644
--- a/servo/views/product.py
+++ b/servo/views/product.py
@@ -359,9 +359,9 @@ def view_product(request, pk=None, code=None, group=None):
data = prep_list_view(request, group)
data['product'] = product
- data['title'] = product.title
data['inventory'] = inventory
-
+ data['title'] = '%s - %s' % (product.code, product.title)
+
return render(request, "products/view.html", data)
diff --git a/servo/views/shipments.py b/servo/views/shipments.py
index 0064a39..3d0a56e 100644
--- a/servo/views/shipments.py
+++ b/servo/views/shipments.py
@@ -315,9 +315,9 @@ def update_part(request, part, return_type):
return_type = int(return_type)
part = ServicePart.objects.get(pk=part)
- msg = ""
- form = ""
- title = ""
+ msg = ""
+ form = ""
+ title = ""
if return_type == Shipment.RETURN_DOA:
title = _("Return DOA Part")
@@ -345,7 +345,7 @@ def update_part(request, part, return_type):
try:
part.update_part(form.cleaned_data, return_type, request.user)
messages.success(request, _("Part updated"))
- except Exception, e:
+ except Exception as e:
messages.error(request, e)
else:
messages.error(request, form.errors)