Tweak display for some product fields.

This commit is contained in:
Lance Edgar 2015-03-23 17:23:24 -05:00
parent 84c5f0a327
commit d8790c7c4f

View file

@ -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 ""