feat: add encrypted_dek field to Letter model and enforce its presence during serialization

This commit is contained in:
Your Name
2026-04-11 18:37:36 +05:30
parent 96f867f139
commit bbdf4a41d4
5 changed files with 44 additions and 2 deletions
+1
View File
@@ -28,6 +28,7 @@ class Letter(models.Model):
sealed_at = models.DateTimeField(null=True, blank=True)
opened_at = models.DateTimeField(null=True, blank=True)
burned_at = models.DateTimeField(null=True, blank=True)
encrypted_dek = models.TextField(null=True, blank=True)
def clean(self):
# custom validation