Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nk20-scripts
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BDE
nk20-scripts
Commits
256ac0a7
Commit
256ac0a7
authored
4 years ago
by
ynerant
Browse files
Options
Downloads
Patches
Plain Diff
Order registration by promotion rather than by roles
parent
26be04c4
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
management/commands/export_wei_registrations.py
+2
-2
2 additions, 2 deletions
management/commands/export_wei_registrations.py
with
2 additions
and
2 deletions
management/commands/export_wei_registrations.py
+
2
−
2
View file @
256ac0a7
...
...
@@ -55,7 +55,7 @@ class Command(BaseCommand):
qs
=
qs
.
filter
(
club
=
wei
).
order_by
(
Lower
(
'
bus__name
'
),
Lower
(
'
team__name
'
),
'
roles
'
,
'
user__profile__promotion
'
,
Lower
(
'
user__last_name
'
),
Lower
(
'
user__first_name
'
),
).
distinct
()
...
...
@@ -85,5 +85,5 @@ class Command(BaseCommand):
s
+=
sep
+
user
.
profile
.
section_generated
s
+=
sep
+
bus
.
name
s
+=
sep
+
(
team
.
name
if
team
else
"
--
"
)
s
+=
sep
+
"
,
"
.
join
(
role
.
name
for
role
in
membership
.
roles
.
all
())
s
+=
sep
+
"
,
"
.
join
(
role
.
name
for
role
in
membership
.
roles
.
filter
(
~
Q
(
name
=
"
Adhérent WEI
"
)).
all
())
self
.
stdout
.
write
(
s
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment