introduce plan ordering and marking as best
This commit is contained in:
parent
9e0ccb6025
commit
c93f8de717
4 changed files with 132 additions and 21 deletions
32
hub/services/migrations/0038_add_plan_ordering_and_best.py
Normal file
32
hub/services/migrations/0038_add_plan_ordering_and_best.py
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Generated by Django 5.2 on 2025-06-23 10:34
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("services", "0037_remove_plan_pricing_planprice"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name="plan",
|
||||
options={"ordering": ["order", "name"]},
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="plan",
|
||||
name="is_best",
|
||||
field=models.BooleanField(
|
||||
default=False, help_text="Mark this plan as the best/recommended option"
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="plan",
|
||||
name="order",
|
||||
field=models.PositiveIntegerField(
|
||||
default=0,
|
||||
help_text="Order of this plan in the offering (lower numbers appear first)",
|
||||
),
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue