Refactored google calendar sync

This commit is contained in:
Martin Bauer
2014-04-26 11:17:10 +02:00
committed by Martin Bauer
parent 46b4078fac
commit 1aa23d2691
11 changed files with 370 additions and 374 deletions

View File

@@ -133,9 +133,9 @@ class EventParticipation( models.Model ):
return self.user.username
def save( self, *args, **kwargs ):
prev = EventParticipation.objects.get( event = self.event, user = self.user )
if prev.status != self.status or prev.comment != self.comment:
super(EventParticipation,self).save( *args,**kwargs)
prev = EventParticipation.objects.get( event = self.event, user = self.user )
if prev.status != self.status or prev.comment != self.comment:
super(EventParticipation,self).save( *args,**kwargs)
@staticmethod