Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update slug length #403

Merged
merged 13 commits into from
Apr 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "blossom"
version = "1.70.0"
version = "1.71.0"
description = "The site!"
authors = ["Grafeas Group Ltd. <devs@grafeas.org>"]

Expand Down
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