Order registration by promotion rather than by roles
This commit is contained in:
parent
26be04c435
commit
256ac0a7f2
|
@ -55,7 +55,7 @@ class Command(BaseCommand):
|
||||||
qs = qs.filter(club=wei).order_by(
|
qs = qs.filter(club=wei).order_by(
|
||||||
Lower('bus__name'),
|
Lower('bus__name'),
|
||||||
Lower('team__name'),
|
Lower('team__name'),
|
||||||
'roles',
|
'user__profile__promotion',
|
||||||
Lower('user__last_name'),
|
Lower('user__last_name'),
|
||||||
Lower('user__first_name'),
|
Lower('user__first_name'),
|
||||||
).distinct()
|
).distinct()
|
||||||
|
@ -85,5 +85,5 @@ class Command(BaseCommand):
|
||||||
s += sep + user.profile.section_generated
|
s += sep + user.profile.section_generated
|
||||||
s += sep + bus.name
|
s += sep + bus.name
|
||||||
s += sep + (team.name if team else "--")
|
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)
|
self.stdout.write(s)
|
||||||
|
|
Loading…
Reference in New Issue