Event API & User Event view

This commit is contained in:
Martin Bauer
2013-06-18 22:49:01 +02:00
parent 111fce5d91
commit 0ce7dc2f25
9 changed files with 309 additions and 4 deletions

View File

@@ -51,5 +51,10 @@ class EventParticipation( models.Model ):
status = models.CharField ( max_length=3, choices = OPTIONS, default='?' )
comment = models.CharField ( max_length=64, blank=True )
def get_musician_username(self):
return self.musician.user.username
class Meta:
unique_together = ("event", "musician")
unique_together = ("event", "musician")