Ajout de commentaires

This commit is contained in:
2019-01-14 21:54:31 +01:00
parent fa21495884
commit 3aa52bbb6a
2 changed files with 7 additions and 0 deletions

View File

@ -36,5 +36,8 @@ class RelayPilotSerializer(serializers.ModelSerializer):
model = Relay
#fields = ('relay_start','relay_end','has_refuel','pilot_chrono','comment','team_pilot','race')
fields = '__all__'
'''
To get linked elements référenced by a foreign key, use depth to adjust the depth of the request.
'''
depth = 2