From d8790c7c4f5d321df46d411a6cea803702a25392 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 23 Mar 2015 17:23:24 -0500 Subject: [PATCH] Tweak display for some product fields. --- tailbone/forms/renderers/products.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tailbone/forms/renderers/products.py b/tailbone/forms/renderers/products.py index c1b7ce35..eda3f240 100644 --- a/tailbone/forms/renderers/products.py +++ b/tailbone/forms/renderers/products.py @@ -79,7 +79,7 @@ class DepartmentFieldRenderer(TextFieldRenderer): def render_readonly(self, **kwargs): dept = self.raw_value if dept: - return "{0} {1}".format(dept.number, dept.name) + return "{0} - {1}".format(dept.number, dept.name) return "" @@ -90,7 +90,7 @@ class SubdepartmentFieldRenderer(TextFieldRenderer): def render_readonly(self, **kwargs): sub = self.raw_value if sub: - return "{0} {1}".format(sub.number, sub.name) + return "{0} - {1}".format(sub.number, sub.name) return "" @@ -101,7 +101,7 @@ class CategoryFieldRenderer(TextFieldRenderer): def render_readonly(self, **kwargs): cat = self.raw_value if cat: - return "{0} {1}".format(cat.number, cat.name) + return "{0} - {1}".format(cat.number, cat.name) return ""