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

11 lines
278 B
Python
Raw Permalink Normal View History

from django.core.management.base import NoArgsCommand
2019-01-05 13:04:20 +01:00
from eventplanner_gcal.google_sync import stop_all_gcal_subscriptions
class Command(NoArgsCommand):
help = 'Stops all GCal subscriptions'
2019-01-05 13:04:20 +01:00
def handle_noargs(self, **options):
2019-01-05 13:04:20 +01:00
stop_all_gcal_subscriptions()