Various fixes
This commit is contained in:
@@ -4,6 +4,7 @@ Views for Google Calendar integration management.
|
||||
|
||||
import logging
|
||||
|
||||
from django.contrib.auth.decorators import login_required
|
||||
from django.http import HttpResponse
|
||||
from django.shortcuts import redirect, render
|
||||
from django.views.decorators.csrf import csrf_exempt
|
||||
@@ -18,12 +19,14 @@ from .models import UserGCalCoupling
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@login_required
|
||||
def run_sync(request):
|
||||
"""Manually trigger a sync from local to Google Calendar."""
|
||||
sync_from_local_to_google()
|
||||
return redirect("/")
|
||||
|
||||
|
||||
@login_required
|
||||
def manage(request):
|
||||
"""
|
||||
View for managing Google Calendar integration settings.
|
||||
|
||||
Reference in New Issue
Block a user