Bugfixes in Eventplanning & gcal coupling module

This commit is contained in:
Martin Bauer
2014-06-22 11:52:26 +02:00
parent df22b838fa
commit 568376fbe7
4 changed files with 41 additions and 23 deletions

View File

@@ -51,12 +51,12 @@ class Event ( models.Model ):
# Create a "Don't Know" participation for each Musician
for u in User.objects.all():
if not u in self.participants.all():
EventParticipation.objects.create( event=self, user = u, status='?', comment = '' )
EventParticipation.objects.create( event=self, user = u, status='-', comment = '' )
@property
def title(self):
res = self.get_type_display()
if ( self.short_desc ):
if self.short_desc:
res += " (" + self.short_desc + ") "
return res