blechreiz-website/eventplanner_gcal/management/commands/gcal_stop_subscriptions.py

11 lines
278 B
Python

from django.core.management.base import NoArgsCommand
from eventplanner_gcal.google_sync import stop_all_gcal_subscriptions
class Command(NoArgsCommand):
help = 'Stops all GCal subscriptions'
def handle_noargs(self, **options):
stop_all_gcal_subscriptions()