Browse Source

Add id field.

feature/bike-tracking
Drew Larson 8 years ago
parent
commit
602941f829
  1. 1
      bikeshop_project/bike/serializers.py

1
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()

Loading…
Cancel
Save