Commit 23f38a5d authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

Fix ordering in snf-manage listing commands

parent e23c2e1b
......@@ -56,7 +56,7 @@ class Command(BaseCommand):
if args:
raise CommandError("Command doesn't accept any arguments")
groups = Group.objects.all()
groups = Group.objects.all().order_by('id')
labels = ('id', 'name', 'permissions')
columns = (3, 12, 50)
......
......@@ -55,7 +55,7 @@ class Command(BaseCommand):
if args:
raise CommandError("Command doesn't accept any arguments")
invitations = Invitation.objects.all()
invitations = Invitation.objects.all().order_by('id')
labels = ('id', 'inviter', 'email', 'real name', 'code', 'consumed')
columns = (3, 24, 24, 24, 20, 4, 8)
......
......@@ -52,7 +52,7 @@ class Command(BaseCommand):
if args:
raise CommandError("Command doesn't accept any arguments")
services = Service.objects.all()
services = Service.objects.all().order_by('id')
labels = ('id', 'name', 'url', 'auth_token', 'icon')
columns = (3, 12, 40, 20, 20)
......
......@@ -65,7 +65,7 @@ class Command(BaseCommand):
if args:
raise CommandError("Command doesn't accept any arguments")
users = AstakosUser.objects.all()
users = AstakosUser.objects.all().order_by('id')
if options['pending']:
users = users.filter(is_active=False)
elif options['pending_send_mail']:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment