Commit 618e08b3 authored by Patrick's avatar Patrick

Code cleanup

parent 5ae35733
......@@ -78,7 +78,12 @@ class Staff(MPTTModel, TranslatableModel):
def title_for_admin(self):
if self.customer_responsible is not None:
tester = _(" who is also tester ") if self.is_tester else EMPTY_STRING
return '%s : %s%s (%s)' % (self.safe_translation_getter('long_name', any_language=True), self.customer_responsible.long_basket_name, tester, self.customer_responsible.phone1)
return '%s : %s%s (%s)' % (
self.safe_translation_getter('long_name', any_language=True),
self.customer_responsible.long_basket_name,
tester,
self.customer_responsible.phone1
)
else:
return '%s' % self.safe_translation_getter('long_name', any_language=True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment