From b9aded503710d53778f0141cfacd3cadf7c2b851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20CHARLIER?= <clement@MacBook-Pro-de-Clement-2.local> Date: Sun, 12 Nov 2023 16:41:00 +0100 Subject: [PATCH] changement serializer profils --- profiles/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/serializers.py b/profiles/serializers.py index d5774a1..e178ac5 100644 --- a/profiles/serializers.py +++ b/profiles/serializers.py @@ -34,7 +34,7 @@ class StudentSerializer(serializers.HyperlinkedModelSerializer): class Meta: # noqa model = Student fields = ( - 'user_id', 'user', 'url', 'registration', 'visits', 'gender', 'addressNumber', 'street', 'city', 'personalPhone', 'parentsPhone', 'parentsEmail', 'school', 'grade', 'scholarship', 'fatherActivity', 'motherActivity', 'parentsStatus', 'dependantsNumber', 'specialTeaching', 'nationality', 'zipCode', 'classType', 'year') + 'user_id', 'user','full_name', 'url', 'registration', 'visits', 'gender', 'addressNumber', 'street', 'city', 'personalPhone', 'parentsPhone', 'parentsEmail', 'school', 'grade', 'scholarship', 'fatherActivity', 'motherActivity', 'parentsStatus', 'dependantsNumber', 'specialTeaching', 'nationality', 'zipCode', 'classType', 'year') extra_kwargs = { 'url': {'view_name': 'api:student-detail'}, } -- GitLab