1
0
mirror of https://github.com/etesync/server synced 2024-10-31 20:58:54 +00:00
etesync-server/django_etebase/admin-cli/management/commands/groups-list.py

9 lines
239 B
Python
Raw Normal View History

2021-06-02 21:29:18 +00:00
from django.core.management.base import BaseCommand
from django.contrib.auth.models import Group
class Command(BaseCommand):
def handle(self, *args, **options):
for group in Group.objects.all():
print(group.name)