remove Product.selling_price and Product.special_selling_price

This commit is contained in:
imperosol
2026-03-05 18:15:24 +01:00
parent c2dfbc8bec
commit 7322a0c1cb
2 changed files with 18 additions and 7 deletions

View File

@@ -72,7 +72,10 @@ class Migration(migrations.Migration):
"label",
models.CharField(
default="",
help_text="A short label for easier differentiation if a user can see multiple prices.",
help_text=(
"A short label for easier differentiation "
"if a user can see multiple prices."
),
max_length=32,
verbose_name="label",
blank=True,
@@ -104,5 +107,16 @@ class Migration(migrations.Migration):
],
options={"verbose_name": "price"},
),
migrations.AlterField(
model_name="product",
name="tray",
field=models.BooleanField(
default=False,
help_text="Buy five, get the sixth free",
verbose_name="tray price",
),
),
migrations.RunPython(migrate_prices, reverse_code=migrations.RunPython.noop),
migrations.RemoveField(model_name="product", name="selling_price"),
migrations.RemoveField(model_name="product", name="special_selling_price"),
]