1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-23 15:56:37 +02:00

Improve admin interface

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2023-04-03 19:13:15 +02:00
parent 073d761a03
commit b3c26b8c1c
7 changed files with 396 additions and 177 deletions

View File

@ -192,6 +192,11 @@ class ParticipantRegistration(Registration):
raise NotImplementedError
class Meta:
verbose_name = _("participant registration")
verbose_name_plural = _("participant registrations")
class StudentRegistration(ParticipantRegistration):
"""
Specific registration for students.
@ -317,6 +322,10 @@ class VolunteerRegistration(Registration):
from registration.forms import VolunteerRegistrationForm
return VolunteerRegistrationForm
class Meta:
verbose_name = _("volunteer registration")
verbose_name_plural = _("volunteer registrations")
def get_scholarship_filename(instance, filename):
return f"authorization/scholarship/scholarship_{instance.registration.pk}"