Changes on server

- bugfixes in gcal callback
- requirements txt
This commit is contained in:
Martin Bauer
2014-04-21 09:21:59 +02:00
parent aac687c0c7
commit 46b4078fac
9 changed files with 84 additions and 56 deletions

View File

@@ -132,6 +132,12 @@ class EventParticipation( models.Model ):
def get_username(self):
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)
@staticmethod
def hasUserSetParticipationForAllEvents( user ):
if not EventParticipation.isMember(user):
@@ -177,4 +183,4 @@ class EventParticipation( models.Model ):
)