mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-06-22 07:58:21 +02:00
Display popups to create and join team
This commit is contained in:
@ -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)
|
||||
|
@ -5,7 +5,7 @@ from .views import SignupView, UserValidationEmailSentView, UserResendValidation
|
||||
app_name = "registration"
|
||||
|
||||
urlpatterns = [
|
||||
path("signup", SignupView.as_view(), name="signup"),
|
||||
path("signup/", SignupView.as_view(), name="signup"),
|
||||
path('validate_email/sent/', UserValidationEmailSentView.as_view(), name='email_validation_sent'),
|
||||
path('validate_email/resend/<int:pk>/', UserResendValidationEmailView.as_view(),
|
||||
name='email_validation_resend'),
|
||||
|
Reference in New Issue
Block a user