Increase selling label size and add more counter click tests

This commit is contained in:
2024-12-23 00:00:40 +01:00
parent f6693e12cf
commit b8d43a629b
3 changed files with 98 additions and 10 deletions

View File

@ -791,7 +791,8 @@ class SellingQuerySet(models.QuerySet):
class Selling(models.Model):
"""Handle the sellings."""
label = models.CharField(_("label"), max_length=64)
# We make sure that sellings have a way begger label than any product name is allowed to
label = models.CharField(_("label"), max_length=128)
product = models.ForeignKey(
Product,
related_name="sellings",