mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-25 07:00:32 +02:00
Add api endpoints for tweaks and payments
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
@ -5,7 +5,7 @@ from rest_framework import serializers
|
||||
from rest_polymorphic.serializers import PolymorphicSerializer
|
||||
|
||||
from ..models import CoachRegistration, ParticipantRegistration, \
|
||||
StudentRegistration, VolunteerRegistration
|
||||
Payment, StudentRegistration, VolunteerRegistration
|
||||
|
||||
|
||||
class CoachSerializer(serializers.ModelSerializer):
|
||||
@ -38,3 +38,9 @@ class RegistrationSerializer(PolymorphicSerializer):
|
||||
StudentRegistration: StudentSerializer,
|
||||
VolunteerRegistration: VolunteerSerializer,
|
||||
}
|
||||
|
||||
|
||||
class PaymentSerializer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
model = Payment
|
||||
fields = '__all__'
|
||||
|
Reference in New Issue
Block a user