From 19fccc9c6243e80452c7d14746325f3b81d16a2f Mon Sep 17 00:00:00 2001 From: Sayyid Hamid Mahdavi Date: Sun, 2 Mar 2025 15:20:56 +0330 Subject: [PATCH] get uuid in creation --- apps/wallet/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wallet/models.py b/apps/wallet/models.py index 619a299..4f2ebb0 100755 --- a/apps/wallet/models.py +++ b/apps/wallet/models.py @@ -45,7 +45,7 @@ from ..gooyal_oauth2.models import Application class Transaction(models.Model): - uuid = models.UUIDField(primary_key=True, editable=False, default=uuid.uuid4, unique=True, + uuid = models.UUIDField(primary_key=True, editable=True, default=uuid.uuid4, unique=True, db_index=True) # reserve_code amount = models.PositiveBigIntegerField(_('amount'), blank=False, validators=[MinValueValidator(1)]) delay = models.PositiveIntegerField(default=0, blank=True) # number of days for delayed payments