Skip to content

Commit

Permalink
Return entire file object from DRF serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
danlamanna authored May 24, 2022
1 parent 7683e9e commit 50ab99f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s3_file_field/rest_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ def to_internal_value(self, data):

# fields.S3FileField.save_form_data is not called by DRF, so the same behavior must be
# implemented here
internal_value = file_object.name
internal_value = file_object

return internal_value

0 comments on commit 50ab99f

Please sign in to comment.