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
No related branches found
No related tags found
No related merge requests found
......@@ -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'},
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment