Skip to content

Commit 539f010

Browse files
authored
Gold: update max_length to accept Stripe price id (#11452)
Solves https://read-the-docs.sentry.io/issues/5542852208/
1 parent 3fec41a commit 539f010

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Generated by Django 4.2.13 on 2024-07-08 09:06
2+
3+
from django.db import migrations, models
4+
from django_safemigrate import Safe
5+
6+
7+
class Migration(migrations.Migration):
8+
safe = Safe.before_deploy
9+
dependencies = [
10+
("gold", "0006_remove_old_payments_field"),
11+
]
12+
13+
operations = [
14+
migrations.AlterField(
15+
model_name="golduser",
16+
name="level",
17+
field=models.CharField(
18+
choices=[
19+
("v1-org-5", "$5/mo"),
20+
("v1-org-10", "$10/mo"),
21+
("v1-org-15", "$15/mo"),
22+
("v1-org-20", "$20/mo"),
23+
("v1-org-50", "$50/mo"),
24+
("v1-org-100", "$100/mo"),
25+
],
26+
default="v1-org-5",
27+
max_length=64,
28+
verbose_name="Level",
29+
),
30+
),
31+
]

readthedocs/gold/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class GoldUser(models.Model):
3737
)
3838
level = models.CharField(
3939
_("Level"),
40-
max_length=20,
40+
max_length=64,
4141
choices=LEVEL_CHOICES,
4242
default=LEVEL_CHOICES[0][0],
4343
)

0 commit comments

Comments
 (0)