mirror of
https://github.com/ae-utbm/sith.git
synced 2026-05-22 17:00:19 +00:00
remove Product.buying_groups
Savoir quel groupe a le droit d'acheter quel produit est maintenant déterminé avec le modèle `Price`. `Product.buying_groups` avait juste été laissé temporairement pour permettre un rollback si le déploiement des prix ne se passait pas bien. Comme il n'y a pas eu de problème, on peut maintenant le retirer.
This commit is contained in:
@@ -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"),
|
||||||
|
]
|
||||||
@@ -388,9 +388,6 @@ class Product(models.Model):
|
|||||||
tray = models.BooleanField(
|
tray = models.BooleanField(
|
||||||
_("tray price"), help_text=_("Buy five, get the sixth free"), default=False
|
_("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)
|
archived = models.BooleanField(_("archived"), default=False)
|
||||||
created_at = models.DateTimeField(_("created at"), auto_now_add=True)
|
created_at = models.DateTimeField(_("created at"), auto_now_add=True)
|
||||||
updated_at = models.DateTimeField(_("updated at"), auto_now=True)
|
updated_at = models.DateTimeField(_("updated at"), auto_now=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user