diff --git a/counter/migrations/0040_product_clic_limit.py b/counter/migrations/0040_product_clic_limit.py new file mode 100644 index 00000000..faa4f215 --- /dev/null +++ b/counter/migrations/0040_product_clic_limit.py @@ -0,0 +1,11 @@ +# Generated by Django 5.2.13 on 2026-05-13 11:31 + +from django.db import migrations + + +class Migration(migrations.Migration): + dependencies = [("counter", "0039_price")] + + operations = [ + migrations.RemoveField(model_name="product", name="buying_groups"), + ] diff --git a/counter/models.py b/counter/models.py index fbc208f3..899dd4cd 100644 --- a/counter/models.py +++ b/counter/models.py @@ -388,9 +388,6 @@ class Product(models.Model): tray = models.BooleanField( _("tray price"), help_text=_("Buy five, get the sixth free"), default=False ) - buying_groups = models.ManyToManyField( - Group, related_name="products", verbose_name=_("buying groups"), blank=True - ) archived = models.BooleanField(_("archived"), default=False) created_at = models.DateTimeField(_("created at"), auto_now_add=True) updated_at = models.DateTimeField(_("updated at"), auto_now=True)