Skip to content

Commit

Permalink
Fixes context choices in attachment serizlier
Browse files Browse the repository at this point in the history
  • Loading branch information
nezhar committed Nov 24, 2021
1 parent 273f283 commit 3de3d1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drf_attachments/rest/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class AttachmentSerializer(serializers.ModelSerializer):

file = FileField(write_only=True, required=True)
content_object = get_content_object_field()
context = ChoiceField(choices=attachment_context_choices())
context = ChoiceField(choices=attachment_context_choices(values_list=False))

class Meta:
model = Attachment
Expand Down

0 comments on commit 3de3d1e

Please sign in to comment.