Skip to content

Commit

Permalink
Make download_guid field unique
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Rusakov committed Nov 6, 2024
1 parent 6b7e040 commit d0aeb37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ class OrderItemStatus(models.TextChoices):
)
comment = models.TextField(_("comment"), null=True, blank=True)
token = models.CharField(_("token"), max_length=256, null=True, blank=True)
download_guid = models.UUIDField(_("download_guid"), null=True, blank=True)
download_guid = models.UUIDField(_("download_guid"), null=True, blank=True, unique=True)

class Meta:
db_table = "order_item"
Expand Down

0 comments on commit d0aeb37

Please sign in to comment.