From 602941f829b1447b96870db6991593c2da985ec7 Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Sun, 29 Jan 2017 16:23:46 -0600 Subject: [PATCH] Add id field. --- bikeshop_project/bike/serializers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bikeshop_project/bike/serializers.py b/bikeshop_project/bike/serializers.py index aea242f..7bba83f 100644 --- a/bikeshop_project/bike/serializers.py +++ b/bikeshop_project/bike/serializers.py @@ -8,6 +8,7 @@ class BikeSerializer(serializers.HyperlinkedModelSerializer): model = Bike fields = '__all__' + id = serializers.ReadOnlyField() created_at = serializers.ReadOnlyField() state = serializers.ReadOnlyField() available_states = serializers.ReadOnlyField()