Skip to content
Snippets Groups Projects
Commit b9aded50 authored by Clément CHARLIER's avatar Clément CHARLIER
Browse files

changement serializer profils

parent c72f602c
Branches
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ class StudentSerializer(serializers.HyperlinkedModelSerializer): ...@@ -34,7 +34,7 @@ class StudentSerializer(serializers.HyperlinkedModelSerializer):
class Meta: # noqa class Meta: # noqa
model = Student model = Student
fields = ( 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 = { extra_kwargs = {
'url': {'view_name': 'api:student-detail'}, 'url': {'view_name': 'api:student-detail'},
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment