Browse Source

Make sure fields can’t be updated in serializer.

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

3
bikeshop_project/bike/serializers.py

@ -7,3 +7,6 @@ class BikeSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Bike
fields = '__all__'
created_at = serializers.ReadOnlyField()
state = serializers.ReadOnlyField()

Loading…
Cancel
Save