Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
chris
repanier
Commits
713d0fdf
Commit
713d0fdf
authored
Mar 23, 2017
by
Patrick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DOrder the staff members via drag / drop in the admin interface
parent
53fa171f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
repanier/models/staff.py
repanier/models/staff.py
+2
-2
No files found.
repanier/models/staff.py
View file @
713d0fdf
...
...
@@ -77,9 +77,9 @@ class Staff(MPTTModel, TranslatableModel):
@
property
def
title_for_admin
(
self
):
if
self
.
customer_responsible
is
not
None
:
return
'%s : %s (%s)'
%
(
self
.
long_name
,
self
.
customer_responsible
.
long_basket_name
,
self
.
customer_responsible
.
phone1
)
return
'%s : %s (%s)'
%
(
self
.
safe_translation_getter
(
'long_name'
,
any_language
=
True
)
,
self
.
customer_responsible
.
long_basket_name
,
self
.
customer_responsible
.
phone1
)
else
:
return
'%s'
%
self
.
long_name
return
'%s'
%
self
.
safe_translation_getter
(
'long_name'
,
any_language
=
True
)
objects
=
StaffManager
()
...
...
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