get uuid in creation
This commit is contained in:
parent
a0f6fc1e8c
commit
19fccc9c62
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue