9π
β
I believe the issue is in your serializer class where you define the image
model field as Field
. The generic Field
is read-only, so that may be the source of the problem. Try simply removing that from your serializer, as it isnβt necessary:
class PhotoSerializer(serializers.ModelSerializer):
class Meta:
model = Photo
Hope this helps, let me know how you get along.
π€Fiver
Source:stackexchange.com