Commit 0577290b authored by Patrick's avatar Patrick

Display into the admin if the user is a tester

parent 4d6fcb78
......@@ -77,7 +77,8 @@ class Staff(MPTTModel, TranslatableModel):
@property
def title_for_admin(self):
if self.customer_responsible is not None:
return '%s : %s (%s)' % (self.safe_translation_getter('long_name', any_language=True), self.customer_responsible.long_basket_name, self.customer_responsible.phone1)
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)
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