Skip to content

Commit 20e8290

Browse files
Copilotericholscher
andcommitted
Update audit model to use 55 char max_length for project slug
Co-authored-by: ericholscher <[email protected]>
1 parent 6677b6c commit 20e8290

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Generated by Django 5.2.4 on 2025-01-XX XX:XX
2+
from django.db import migrations
3+
from django.db import models
4+
from django_safemigrate import Safe
5+
6+
7+
class Migration(migrations.Migration):
8+
safe = Safe.after_deploy()
9+
10+
dependencies = [
11+
("audit", "0008_alter_auditlog_action"),
12+
]
13+
14+
operations = [
15+
migrations.AlterField(
16+
model_name="auditlog",
17+
name="log_project_slug",
18+
field=models.CharField(
19+
max_length=55,
20+
blank=True,
21+
null=True,
22+
db_index=True,
23+
verbose_name="Project slug",
24+
),
25+
),
26+
]

readthedocs/audit/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class AuditLog(TimeStampedModel):
145145
)
146146
log_project_slug = models.CharField(
147147
_("Project slug"),
148-
max_length=63,
148+
max_length=55,
149149
blank=True,
150150
null=True,
151151
db_index=True,

0 commit comments

Comments
 (0)