1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-07-04 11:32:13 +02:00

Display popups to create and join team

This commit is contained in:
Yohann D'ANELLO
2020-09-22 20:41:42 +02:00
parent 016398dd8d
commit c7f74b68be
11 changed files with 399 additions and 195 deletions

View File

@ -55,6 +55,10 @@ class Registration(PolymorphicModel):
def type(self):
raise NotImplementedError
@property
def participates(self):
return isinstance(self, StudentRegistration) or isinstance(self, CoachRegistration)
def __str__(self):
return _("registration of {first_name} {last_name}")\
.format(first_name=self.user.first_name, last_name=self.user.last_name)