1
0
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:
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)

View File

@ -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'),