let the subscription card come from the server
کارتِ اشتراک زیرِ هر پلن فهرستِ امکانات و یک برچسب («محبوبترین»، «بهترین ارزش») نشان میدهد، و هر دو در کدِ فرانت هاردکد بودند — یعنی عوض کردنِ یک بندِ متنی به دیپلویِ تازهی اپ نیاز داشت. Plan حالا features و badge دارد. `popular` سرِ جایش ماند: بولین است و متنِ برچسب را نمیدهد، پس این جایگزینش نیست، کنارش است. هیچکدام اجباری نیستند و پلنهای موجود بدونشان همچنان سرو میشوند. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
23
subscription/migrations/0004_plan_badge_plan_features.py
Normal file
23
subscription/migrations/0004_plan_badge_plan_features.py
Normal file
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 5.2.17 on 2026-09-13 22:30
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('subscription', '0003_subscription_version'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='plan',
|
||||
name='badge',
|
||||
field=models.CharField(blank=True, max_length=30),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='plan',
|
||||
name='features',
|
||||
field=models.JSONField(blank=True, default=list),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user