Skip to content

Commit 6740c0b

Browse files
Added help text for the new price fields for product page (#2785)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent cdd2ce5 commit 6740c0b

File tree

2 files changed

+50
-2
lines changed

2 files changed

+50
-2
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Generated by Django 4.2.22 on 2025-07-10 13:12
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
dependencies = [
8+
("cms", "0047_populate_max_min_price"),
9+
]
10+
11+
operations = [
12+
migrations.AlterField(
13+
model_name="coursepage",
14+
name="max_price",
15+
field=models.SmallIntegerField(
16+
blank=True,
17+
help_text="Specify the maximum product price. This is used by MIT Learn.",
18+
null=True,
19+
),
20+
),
21+
migrations.AlterField(
22+
model_name="coursepage",
23+
name="min_price",
24+
field=models.SmallIntegerField(
25+
blank=True,
26+
help_text="Specify the minimum product price. This is used by MIT Learn.",
27+
null=True,
28+
),
29+
),
30+
migrations.AlterField(
31+
model_name="programpage",
32+
name="max_price",
33+
field=models.SmallIntegerField(
34+
blank=True,
35+
help_text="Specify the maximum product price. This is used by MIT Learn.",
36+
null=True,
37+
),
38+
),
39+
migrations.AlterField(
40+
model_name="programpage",
41+
name="min_price",
42+
field=models.SmallIntegerField(
43+
blank=True,
44+
help_text="Specify the minimum product price. This is used by MIT Learn.",
45+
null=True,
46+
),
47+
),
48+
]

cms/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,13 +1025,13 @@ class Meta:
10251025
min_price = models.SmallIntegerField(
10261026
null=True,
10271027
blank=True,
1028-
help_text="Specify the minimum product price.",
1028+
help_text="Specify the minimum product price. This is used by MIT Learn.",
10291029
)
10301030

10311031
max_price = models.SmallIntegerField(
10321032
null=True,
10331033
blank=True,
1034-
help_text="Specify the maximum product price.",
1034+
help_text="Specify the maximum product price. This is used by MIT Learn.",
10351035
)
10361036

10371037
prerequisites = RichTextField(

0 commit comments

Comments
 (0)