Skip to content

Commit

Permalink
update slug length
Browse files Browse the repository at this point in the history
  • Loading branch information
itsthejoker committed Apr 20, 2022
1 parent 7f8193b commit 7dcbebd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions website/migrations/0003_alter_post_slug.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.13 on 2022-04-20 00:17

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("website", "0002_alter_post_title"),
]

operations = [
migrations.AlterField(
model_name="post",
name="slug",
field=models.SlugField(default="", editable=False, max_length=300),
),
]
2 changes: 1 addition & 1 deletion website/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Post(models.Model):
# about page, for example
standalone_section = models.BooleanField(default=False)

slug = models.SlugField(default="", editable=False, max_length=70)
slug = models.SlugField(default="", editable=False, max_length=300)
published = models.BooleanField(default=False)
header_order = models.IntegerField(
help_text="Optional: an integer from 1-99 -- lower numbers will appear "
Expand Down

0 comments on commit 7dcbebd

Please sign in to comment.