Skip to content

Commit

Permalink
feat(backend): discount code length = 32 (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
azare242 authored Dec 5, 2023
1 parent 045da46 commit 54a939d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/backend_api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 54a939d

Please sign in to comment.