-
-
Save brunomichetti/1e0054227d4905a79d718e2fc92af1c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from rest_framework import serializers | |
from example_app.models import Example | |
class ExampleSerializer(serializers.ModelSerializer): | |
class Meta: | |
model = Example | |
fields = ('presigned_image',) | |
class ExampleUploadURLSerializer(serializers.Serializer): | |
object_key = serializers.CharField() | |
upload_url_dict = serializers.DictField(required=False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment