Skip to content

Commit

Permalink
Disabled django image validation
Browse files Browse the repository at this point in the history
  • Loading branch information
f213 committed Sep 21, 2024
1 parent f36c116 commit 2e40ce7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/apps/homework/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ class Meta:

class AnswerImageSerializer(serializers.ModelSerializer):
author = serializers.HiddenField(default=serializers.CurrentUserDefault())
image = serializers.FileField()

class Meta:
model = AnswerImage
Expand Down

0 comments on commit 2e40ce7

Please sign in to comment.