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)
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)
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)
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']: