Skip to content
Snippets Groups Projects
Verified Commit d8206c40 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

feat: make `image` a write-only field

parent f94be427
No related branches found
No related tags found
No related merge requests found
Pipeline #8109 passed
......@@ -276,8 +276,7 @@ class ImageSerializer(serializers.ModelSerializer):
return f"{settings.SITE_URL}{instance.image.url}"
class Meta:
# TODO: make `image` a write-only field once dashboard is updated to read from `url`
# extra_kwargs = {"image": {"write_only": True}}
extra_kwargs = {"image": {"write_only": True}}
model = Image
read_only_fields = (
"height",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment