Google calendar sync

This commit is contained in:
Martin Bauer
2014-04-18 13:43:02 +02:00
parent a85e2472f1
commit ba0cde09c1
10 changed files with 1625 additions and 25 deletions

View File

@@ -6,7 +6,6 @@ from django.forms import TextInput
from models import Event, EventParticipation
from serializers import ParticipationSerializer
import datetime
@@ -62,7 +61,8 @@ def eventplanning( request ):
"""
View for a specific user, to edit his events
"""
# non-members see the grid - but cannot edit anything
EventParticipation.raiseBeforeReadSignal()
# non-members see the grid - but cannot edit anything
if not EventParticipation.isMember( request.user ):
return events_grid(request)
@@ -78,6 +78,8 @@ def eventplanning( request ):
def events_grid( request ):
EventParticipation.raiseBeforeReadSignal()
usernames = [ u.username for u in EventParticipation.members() ]
all_future_events = list ( Event.objects.filter( date__gte = datetime.date.today() ).order_by( 'date') )