mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-07-04 00:42:50 +02:00
Implement the data structure for members
This commit is contained in:
@ -8,7 +8,7 @@ from django.core.exceptions import ValidationError
|
||||
from django.forms import FileInput
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from .models import AdminRegistration, CoachRegistration, StudentRegistration
|
||||
from .models import AdminRegistration, CoachRegistration, StudentRegistration, VolunteerRegistration
|
||||
|
||||
|
||||
class SignupForm(UserCreationForm):
|
||||
@ -101,6 +101,15 @@ class CoachRegistrationForm(forms.ModelForm):
|
||||
fields = ('team', 'professional_activity', 'give_contact_to_animath', 'email_confirmed',)
|
||||
|
||||
|
||||
class VolunteerRegistrationForm(forms.ModelForm):
|
||||
"""
|
||||
A volunteer can also tell its professional activity.
|
||||
"""
|
||||
class Meta:
|
||||
model = VolunteerRegistration
|
||||
fields = ('professional_activity', 'give_contact_to_animath', 'email_confirmed',)
|
||||
|
||||
|
||||
class AdminRegistrationForm(forms.ModelForm):
|
||||
"""
|
||||
Admins can tell everything they want.
|
||||
|
Reference in New Issue
Block a user