feat: enable media file handling and allow manual assignment of letter public_id

This commit is contained in:
Your Name
2026-04-12 03:07:09 +05:30
parent 88686cdb0f
commit c288dba6e8
4 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ class LetterSerializer(serializers.ModelSerializer):
"updated_at",
"images",
] # user to be fetched from request
read_only_fields = ["public_id", "created_at", "updated_at"]
read_only_fields = ["created_at", "updated_at"]
def validate(self, data):
if (data.get("encrypted_content") or data.get("encrypted_metadata")) and not data.get("encrypted_dek"):