Event API & User Event view
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user