diff --git a/backend/backend_api/models.py b/backend/backend_api/models.py index 8c7678a..3b29ed5 100644 --- a/backend/backend_api/models.py +++ b/backend/backend_api/models.py @@ -344,7 +344,7 @@ def __str__(self): class Discount(models.Model): - _CODE_LENGTH = 8 + _CODE_LENGTH = 32 code = models.CharField(max_length=_CODE_LENGTH, null=False, default=create_random_string(_CODE_LENGTH), unique=True) discount_percent = models.IntegerField(default=0)