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
Martin Michalec e1446646e9 Add admin-cli
2021-06-02 23:29:18 +02:00

9 lines
239 B
Python
Executable File

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)