Skip to content

Commit

Permalink
Extend post title length to 256 (minmatarfleet#817)
Browse files Browse the repository at this point in the history
  • Loading branch information
bearthatcares authored Oct 14, 2024
1 parent c250876 commit 0cfe090
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions backend/posts/migrations/0005_alter_evepost_title.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.1.2 on 2024-10-14 22:53

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("posts", "0004_evepost_tags_delete_eveposttag"),
]

operations = [
migrations.AlterField(
model_name="evepost",
name="title",
field=models.CharField(max_length=256, unique=True),
),
]
2 changes: 1 addition & 1 deletion backend/posts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class EvePost(models.Model):
state = models.CharField(
max_length=10, choices=state_choices, default="draft"
)
title = models.CharField(max_length=100, unique=True)
title = models.CharField(max_length=256, unique=True)
seo_description = models.CharField(max_length=300)
slug = models.SlugField(max_length=100)
content = models.TextField()
Expand Down

0 comments on commit 0cfe090

Please sign in to comment.