Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chris
repanier
Commits
4ee980de
Commit
4ee980de
authored
Mar 23, 2017
by
Patrick
Browse files
Order the staff members via drag / drop in the admin interface
parent
a0f5b18b
Changes
1
Hide whitespace changes
Inline
Side-by-side
repanier/apps.py
View file @
4ee980de
...
...
@@ -88,6 +88,7 @@ class RepanierSettings(AppConfig):
currency
=
CURRENCY_EUR
)
config
.
save
()
Staff
.
objects
.
rebuild
()
# Create groups with correct rights
order_group
=
Group
.
objects
.
filter
(
name
=
ORDER_GROUP
).
only
(
'id'
).
order_by
(
'?'
).
first
()
if
order_group
is
None
:
...
...
@@ -217,4 +218,3 @@ class RepanierSettings(AppConfig):
print
(
error_str
)
print
(
"##################################"
)
other
=
_
(
"Other qty"
)
Staff
.
objects
.
rebuild
()
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