Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chris
repanier
Commits
0577290b
Commit
0577290b
authored
Mar 27, 2017
by
Patrick
Browse files
Display into the admin if the user is a tester
parent
4d6fcb78
Changes
1
Hide whitespace changes
Inline
Side-by-side
repanier/models/staff.py
View file @
0577290b
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment