mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-07-04 12:52:15 +02:00
Create a Matrix channel when a team got created
This commit is contained in:
@ -64,6 +64,10 @@ class Registration(PolymorphicModel):
|
||||
def is_admin(self):
|
||||
return isinstance(self, AdminRegistration) or self.user.is_superuser
|
||||
|
||||
@property
|
||||
def matrix_username(self):
|
||||
return f"corres2math_{self.user.pk}"
|
||||
|
||||
def get_absolute_url(self):
|
||||
return reverse_lazy("registration:user_detail", args=(self.user_id,))
|
||||
|
||||
|
Reference in New Issue
Block a user