Tweak display for some product fields.
This commit is contained in:
parent
84c5f0a327
commit
d8790c7c4f
|
@ -79,7 +79,7 @@ class DepartmentFieldRenderer(TextFieldRenderer):
|
||||||
def render_readonly(self, **kwargs):
|
def render_readonly(self, **kwargs):
|
||||||
dept = self.raw_value
|
dept = self.raw_value
|
||||||
if dept:
|
if dept:
|
||||||
return "{0} {1}".format(dept.number, dept.name)
|
return "{0} - {1}".format(dept.number, dept.name)
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ class SubdepartmentFieldRenderer(TextFieldRenderer):
|
||||||
def render_readonly(self, **kwargs):
|
def render_readonly(self, **kwargs):
|
||||||
sub = self.raw_value
|
sub = self.raw_value
|
||||||
if sub:
|
if sub:
|
||||||
return "{0} {1}".format(sub.number, sub.name)
|
return "{0} - {1}".format(sub.number, sub.name)
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ class CategoryFieldRenderer(TextFieldRenderer):
|
||||||
def render_readonly(self, **kwargs):
|
def render_readonly(self, **kwargs):
|
||||||
cat = self.raw_value
|
cat = self.raw_value
|
||||||
if cat:
|
if cat:
|
||||||
return "{0} {1}".format(cat.number, cat.name)
|
return "{0} - {1}".format(cat.number, cat.name)
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue