mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 08:56:52 +00:00
feat: enable media file handling and allow manual assignment of letter public_id
This commit is contained in:
@@ -16,7 +16,7 @@ class Letter(models.Model):
|
||||
SEALED = "SEALED", "Sealed"
|
||||
BURNED = "BURNED", "Burned"
|
||||
|
||||
public_id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
|
||||
public_id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=True)
|
||||
user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, related_name="letters")
|
||||
type = models.CharField(max_length=10, choices=Type.choices, default=Type.KEPT)
|
||||
status = models.CharField(max_length=10, choices=Status.choices, default=Status.DRAFT)
|
||||
|
||||
Reference in New Issue
Block a user